/* Unit Margin Labs · site.css
   One stylesheet for every page. Mobile first: base rules are the phone
   layout, min-width queries add columns. Order: tokens, base, layout,
   global components, demos, page sections, utilities. */

/* ------------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------------ */
:root {
  color-scheme: light;
  /* ground and surfaces */
  --bg: #FFFFFF;
  --bg-alt: #F1F5F7;
  --surface: #FFFFFF;
  --surface-2: #F6F9FA;
  /* text */
  --ink: #0F1B2D;
  --ink-2: #44516A;
  --ink-3: #5F6B80;
  /* lines */
  --line: #D5DEE4;
  --line-strong: #7A8997;
  /* brand */
  --marigold: #F5A524;
  --on-marigold: #0F1B2D;
  --teal: #0A6F6B;
  --teal-hover: #085A57;
  --teal-tint: #E2F2F0;
  --on-teal: #FFFFFF;
  --cobalt-tint: #E8EEF9; /* chat bubble tint only */
  --rust: #B5412A;
  --rust-tint: #FBEAE5;
  --tick: #A87F42;
  --focus: #0A6F6B;
  --focus-ui: #0A6F6B;
  /* buttons */
  --btn-bg: #0F1B2D; --btn-bg-hover: #1C2B42; --btn-bg-active: #0A1322; --btn-ink: #FFFFFF;
  /* special grounds */
  --stage-bg: #F5A524;
  --band-bg: #0F1B2D;
  --band-edge: transparent;
  --tile-stroke: rgba(15, 27, 45, .10);
  /* elevation: demo windows and the dropdown panel only */
  --shadow-window: 0 1px 2px rgba(15, 27, 45, .06), 0 12px 32px -8px rgba(15, 27, 45, .18);

  /* type */
  --font-display: "Bricolage Grotesque", "Figtree Fallback", ui-sans-serif, sans-serif;
  --font-body: "Figtree", "Figtree Fallback", ui-sans-serif, "Segoe UI", sans-serif;
  --font-mark: "Newsreader", Georgia, serif;
  --t-display: clamp(2.75rem, 1.729rem + 4.19vw, 5.5rem);
  --t-statement: clamp(2.5rem, 1.664rem + 3.43vw, 4.75rem);
  --t-display-long: clamp(2.375rem, 1.771rem + 2.476vw, 4rem);
  --t-h2: clamp(2rem, 1.629rem + 1.524vw, 3rem);
  --t-index: clamp(1.5rem, 1.314rem + 0.762vw, 2rem);
  --t-h3: clamp(1.5rem, 1.361rem + 0.571vw, 1.875rem);
  --t-deck: clamp(1.375rem, 1.189rem + 0.762vw, 1.875rem);
  --t-h4: clamp(1.125rem, 1.056rem + 0.286vw, 1.3125rem);
  --t-lede: clamp(1.125rem, 1.056rem + 0.286vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-ui: 0.9375rem;
  --t-meta: 0.8125rem;

  /* spacing: one 4-based scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 160px;

  /* radius */
  --r-0: 0; --r-1: 4px; --r-2: 6px; --r-3: 12px;

  /* motion */
  --dur-1: 120ms; --dur-2: 180ms; --dur-3: 300ms;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* grid */
  --gutter: 20px;
  --col-gap: 16px;
  --header-h: 56px;
}

/* Dark: a lit room, not an inversion. Surfaces get lighter as they rise.
   .scheme-dark applies the same tokens to the ink band in light mode. */
:root[data-theme="dark"], .scheme-dark {
  color-scheme: dark;
  --bg: #0C1D21; --bg-alt: #10262B; --surface: #142D33; --surface-2: #183439;
  --ink: #EAF2F1; --ink-2: #A9BDBD; --ink-3: #8AA0A1;
  --line: #26444A; --line-strong: #5E7F85;
  --marigold: #F2AE3D; --on-marigold: #0C1D21;
  --teal: #3CC8BE; --teal-hover: #66D8CF; --teal-tint: #133A3D; --on-teal: #0C1D21;
  --cobalt-tint: #162B45;
  --rust: #F08A6C; --rust-tint: #3A2420;
  --tick: #C99A4E; --focus: #7FE3DA; --focus-ui: #7FE3DA;
  --btn-bg: #F2AE3D; --btn-bg-hover: #F6BD5C; --btn-bg-active: #E09A2A; --btn-ink: #0C1D21;
  --tile-stroke: rgba(234, 242, 241, .10);
  --shadow-window: none;
}
/* Dark page: the marigold stage drops a step so it stops glaring (buttons keep
   full marigold), and the band moves to a deep teal ground with hairline edges
   so it still reads as its own section against #0C1D21. */
:root[data-theme="dark"] { --stage-bg: #D9922A; --band-bg: #0E3A3A; --band-edge: #2F5A5C; }
:root[data-theme="dark"] .band--ink { --line: #2F5A5C; --tile-stroke: rgba(234, 242, 241, .08); }

@media (min-width: 768px) { :root { --gutter: 32px; --col-gap: 24px; } }
@media (min-width: 900px) { :root { --header-h: 64px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; --col-gap: 32px; } }

@font-face {
  font-family: "Figtree Fallback";
  src: local("Arial");
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* ------------------------------------------------------------------
   2. Base
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--font-body);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  text-wrap: balance;
  color: var(--ink);
}
p, li, dd { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
svg:has(> use) { width: 20px; height: 20px; flex: none; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
::selection { background: var(--teal-tint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
strong, b { font-weight: 600; }

/* Links in running text */
:where(p, li, dd) > a:not([class]) {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: color var(--dur-1) var(--ease), text-decoration-color var(--dur-1) var(--ease);
}
:where(p, li, dd) > a:not([class]):hover {
  color: var(--teal-hover);
  text-decoration-color: currentColor;
  text-decoration-thickness: 1.5px;
}
.email {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  overflow-wrap: anywhere;
  transition: text-decoration-color var(--dur-1) var(--ease);
}
.email:hover { text-decoration-color: currentColor; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: var(--s-2);
  top: -64px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--btn-bg);
  color: var(--btn-ink);
  border-radius: var(--r-2);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: var(--s-2); }
.scroll-sentinel {
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 8px;
  pointer-events: none;
}

/* Progressive enhancement: interactive-only parts of demos are never shown
   without JS, and are reserved (invisible) until their component is ready,
   so nothing shifts when it wakes up. */
html:not(.js) [data-js-only] { display: none !important; }
.js [data-demo]:not([data-ready]) [data-js-only] { visibility: hidden; }

/* ------------------------------------------------------------------
   3. Layout
   ------------------------------------------------------------------ */
.wrap { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.wrap--wide { width: min(100% - 2 * var(--gutter), 1360px); }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.grid > * { grid-column: 1 / -1; }

/* One section rhythm: 64px on phones, 96px from 900px. The band is the only
   exception, with 96/128px inside it. Two white sections in a row share one
   gap, set by the second. */
.sec { padding-block: var(--s-8); }
.band { padding-block: var(--s-9); }
@media (min-width: 900px) {
  .sec { padding-block: var(--s-9); }
  .band { padding-block: var(--s-10); }
}
.sec:not(.band):has(+ .sec:not(.band)) { padding-bottom: 0; }

.band--ink {
  position: relative;
  background: var(--band-bg);
  color: var(--ink);
  border-block: 1px solid var(--band-edge);
}
.band--ink > .lattice { position: absolute; left: 0; right: 0; top: 0; }

/* ------------------------------------------------------------------
   4. Global components
   ------------------------------------------------------------------ */

/* 4.1 Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.logo__mark { width: 20px; height: 20px; flex: none; }
.logo__tick { fill: var(--tick); }
.wordmark {
  font: 500 20px/1 var(--font-mark);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.wordmark__dim { color: var(--ink-2); }
@media (min-width: 900px) {
  .logo__mark { width: 22px; height: 22px; }
  .wordmark { font-size: 22px; }
}

.nav { display: none; }
.nav__list { display: flex; align-items: center; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link, .menu-fallback {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font: 500 15.5px/1 var(--font-body);
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.nav__link:hover, .nav__link[aria-current="page"], .nav__item.is-current > .nav__link,
.menu-fallback:hover { text-decoration-line: underline; }
.nav__item--dd .nav__link { padding-right: 2px; }
.nav__dd-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-2);
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.nav__dd-btn svg { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease); }
.nav__dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-dd {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  width: 440px;
  padding: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  box-shadow: var(--shadow-window);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
}
.nav-dd.is-open { opacity: 1; }
.nav-dd::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 9px; }
.nav-dd__link {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: var(--s-4);
  min-height: 64px;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-1);
  color: var(--ink);
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease);
}
.nav-dd__link:hover, .nav-dd__link:focus-visible { background: var(--bg-alt); }
.nav-dd__link .bar { grid-row: 1; align-self: start; margin-top: 10px; }
.nav-dd__name { font: 600 16px/24px var(--font-body); }
.nav-dd__desc { grid-column: 2; font: 400 15px/1.4 var(--font-body); color: var(--ink-2); }
.nav-dd__link[aria-current="page"] .nav-dd__name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.nav-dd__all {
  display: flex;
  width: 100%;
  min-height: 48px;
  margin-top: var(--s-2);
  padding: 0 var(--s-4);
  border-top: 1px solid var(--line);
}

.theme-toggle, .menu-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease);
}
.theme-toggle:hover, .menu-btn:hover { background: var(--bg-alt); }
.theme-toggle svg, .menu-btn svg { width: 20px; height: 20px; }
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
/* Reserve the JS-only header buttons before JS wakes, so the bar never shifts. */
.js .theme-toggle[hidden], .js .site-header .menu-btn[hidden] { display: inline-grid !important; visibility: hidden; }
.js .menu-fallback { display: none; }
.site-header .site-header__cta { display: none; }

@media (min-width: 900px) {
  .nav { display: block; margin-right: var(--s-2); }
  .site-header .site-header__cta { display: inline-flex; margin-left: var(--s-2); }
  .site-header .menu-btn, .js .site-header .menu-btn[hidden], .menu-fallback { display: none !important; }
}

/* 4.2 Mobile menu */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--s-6) + env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto;
  animation: fade-in var(--dur-1) var(--ease);
}
.mmenu__top {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.mmenu__nav { margin-top: var(--s-4); }
.mmenu__list > li { border-bottom: 1px solid var(--line); }
.mmenu__link {
  display: flex;
  align-items: center;
  min-height: 64px;
  font: 500 28px/1.1 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.mmenu__sub { padding-bottom: var(--s-3); }
.mmenu__sublink {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 48px;
  font: 500 18px/1.2 var(--font-body);
  color: var(--ink);
  text-decoration: none;
}
.mmenu__ctas { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* 4.3 Buttons and text actions */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-2);
  font: 600 1rem/1.2 var(--font-body);
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn .btn__arrow { transition: transform var(--dur-1) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(2px); }
.btn--primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn--primary:hover { background: var(--btn-bg-hover); }
.btn--primary:active { background: var(--btn-bg-active); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { background: var(--bg-alt); border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn--xs { position: relative; min-height: 36px; padding: 0 var(--s-4); font-size: 0.9375rem; }
.btn--xs::after { content: ""; position: absolute; inset: -4px; }
.btn--block { width: 100%; min-height: 52px; }
.btn .btn__wa { width: 20px; height: 20px; color: var(--teal); }
.btn--primary .btn__wa { color: currentColor; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.btn--primary:disabled:hover, .btn--primary[aria-disabled="true"]:hover { background: var(--btn-bg); }
.btn--secondary:disabled:hover, .btn--secondary[aria-disabled="true"]:hover { background: transparent; border-color: var(--line-strong); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  font: 600 1rem/1.3 var(--font-body);
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur-1) var(--ease); }
.link-arrow:hover { text-decoration-line: underline; }
.link-arrow:hover svg { transform: translateX(3px); }

.link-wa {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  font: 600 1rem/1.3 var(--font-body);
  color: var(--ink);
  text-decoration: none;
}
.link-wa svg { width: 20px; height: 20px; color: var(--teal); }
.link-wa > span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color var(--dur-1) var(--ease);
}
.link-wa:hover > span { text-decoration-color: currentColor; text-decoration-thickness: 1.5px; }

/* Booking links: a click on the arrow icon counts as a click on the link, so
   the Cal.com popup (which only listens for HTML targets) always opens. */
[data-cal-link] svg { pointer-events: none; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
}

/* 4.4 Brand devices: the section mark and the group bar.
   The mark is the logo at a readable size, in the logo's own proportions
   (long bar 22, short bar 15, gold tick between them), never stretched.
   It opens every major section heading on home. */
.mark-rule {
  display: block;
  position: relative;
  width: 48px;
  height: 26px;
  margin-bottom: var(--s-5);
  border-top: 3px solid currentColor;
}
.mark-rule::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 32px;
  height: 3px;
  background: currentColor;
}
.mark-rule::after {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 4px;
  height: 10px;
  background: var(--tick);
}
.bar { display: inline-block; flex: none; width: 24px; height: 4px; background: var(--teal); }
.bar--lg { width: 48px; }
.meta {
  font: 600 var(--t-meta)/1.3 var(--font-body);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

/* 4.5 Section headers */
.sh { margin-bottom: var(--s-6); }
.sh__title {
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 18ch;
  font-variation-settings: "opsz" 96;
}
.sh__lede {
  margin-top: var(--s-4);
  max-width: 52ch;
  font-size: var(--t-lede);
  line-height: 1.5;
  color: var(--ink-2);
}
.sh--statement { margin-bottom: var(--s-7); }
.sh--statement .sh__title {
  font-size: var(--t-statement);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.sh__aside .link-arrow { margin-top: var(--s-3); }
/* An intro that carries the call to action (the services band). */
.sh__lede > .cta-row { margin-top: var(--s-6); }
.sh__lede > .helper + .link-arrow { margin-top: var(--s-4); }
@media (min-width: 900px) {
  .sh { margin-bottom: var(--s-7); }
}
/* A header that ends its container adds no space below it. */
.sh:last-child { margin-bottom: 0; }
/* Services and Why: the heading and its intro share one row; the intro's
   first line sits level with the heading's cap height. */
@media (min-width: 1100px) {
  .sh--services, .sh--why {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: start;
  }
  .sh--services .mark-rule, .sh--why .mark-rule { grid-column: 1 / -1; }
  .sh--services .sh__title, .sh--why .sh__title { grid-column: 1 / span 7; }
  .sh--services .sh__aside, .sh--why .sh__lede { grid-column: 8 / span 5; margin-top: 0; padding-top: var(--s-3); }
  .sh--services .sh__lede { margin-top: 0; }
  .sh--why .sh__title { max-width: 14ch; font-size: var(--t-statement); line-height: 1; letter-spacing: -0.03em; }
}

/* 4.6 Ledger */
.ledger__row {
  display: grid;
  gap: var(--s-1);
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
.ledger__row:last-child { border-bottom: 1px solid var(--line); }
.ledger__label {
  font-size: var(--t-h4);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.ledger__label a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.ledger__label a:hover { text-decoration-line: underline; }
.ledger__body { color: var(--ink-2); max-width: 64ch; }
.ledger__extra { display: grid; justify-items: start; margin-top: var(--s-2); }
.ledger__extra .link-arrow { min-height: 44px; }
.ledger__extra small { font-size: var(--t-small); color: var(--ink-2); }
.ledger--compact .ledger__row { padding-block: var(--s-4); }
.ledger--compact .ledger__body { color: var(--ink); }
/* A question inside a compact list sits below its h3, in the body face. */
.ledger--compact .ledger__label { font: 600 1rem/1.4 var(--font-body); letter-spacing: 0; }
.ledger--compact .ledger__label + .ledger__body { color: var(--ink-2); }
@media (min-width: 900px) {
  .ledger:not(.ledger--stack):not(.ledger--compact) .ledger__row {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    column-gap: var(--col-gap);
    align-items: start;
  }
  .ledger:not(.ledger--stack):not(.ledger--compact) .ledger__body { padding-left: 0; }
  .ledger:not(.ledger--stack) .ledger__extra { grid-column: 2; }
}

/* 4.7 Link list (rows that are whole links) */
.linklist > li { border-top: 1px solid var(--line); }
.linklist > li:last-child { border-bottom: 1px solid var(--line); }
.linklist__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 56px;
  padding-block: var(--s-3);
  color: var(--ink);
  text-decoration: none;
  font: 600 var(--t-h4)/1.25 var(--font-display);
  letter-spacing: -0.01em;
}
.linklist__link svg { width: 20px; height: 20px; transition: transform var(--dur-1) var(--ease); }
.linklist__name { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.linklist__link:hover .linklist__name { text-decoration-line: underline; }
.linklist__link:hover svg { transform: translateX(3px); }
.linklist__link[aria-current] .linklist__name { text-decoration-line: underline; }
.linklist--sm .linklist__link {
  min-height: 44px;
  padding-block: var(--s-2);
  font: 500 1rem/1.3 var(--font-body);
  letter-spacing: 0;
}
.linklist--sm .linklist__link svg { width: 16px; height: 16px; }

/* 4.8 FAQ */
.faq { max-width: 68ch; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 64px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  list-style: none;
  cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__item:last-child .faq__q { border-bottom: 1px solid var(--line); }
.faq__item:last-child[open] .faq__q { border-bottom: 0; }
.faq__item:last-child[open] { border-bottom: 1px solid var(--line); }
.faq__qtext {
  font: 600 1.125rem/1.4 var(--font-body);
  letter-spacing: 0;
  text-wrap: pretty;
}
.faq__icon { position: relative; flex: none; width: 16px; height: 16px; }
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform var(--dur-2) var(--ease);
}
.faq__icon::before { left: 0; right: 0; top: 7.25px; height: 1.5px; }
.faq__icon::after { top: 0; bottom: 0; left: 7.25px; width: 1.5px; }
.faq__item[open] .faq__icon::after { transform: scaleY(0); }
.faq__q:hover .faq__qtext { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.faq__a { padding-bottom: var(--s-5); color: var(--ink-2); max-width: 64ch; }
.faq__a p + p { margin-top: var(--s-4); }
/* Home FAQ: heading and the book-a-call link in a left column (4 of 12)
   that stays beside the questions; the accordion takes the right 8. */
.sh--faq .link-arrow { margin-top: var(--s-3); }
@media (min-width: 1100px) {
  .faq-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .sh--faq { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + var(--s-6)); margin-bottom: 0; }
  .faq-layout .faq { grid-column: 5 / span 8; max-width: none; }
  .faq-layout .faq__item:first-child .faq__q { padding-top: var(--s-2); border-top: 0; }
}
/* 4.9 Forms and chips */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; align-items: start; gap: var(--s-5); }
.field { display: grid; align-content: start; gap: var(--s-2); min-width: 0; }
.field__label { padding: 0; font: 600 1rem/1.4 var(--font-body); color: var(--ink); }
.field__hint { font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); }
.field__input {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: border-color var(--dur-1) var(--ease);
}
textarea.field__input { min-height: 0; padding: var(--s-3) var(--s-4); resize: vertical; }
.field__input::placeholder { color: var(--ink-3); opacity: 1; }
.field__input:hover { border-color: var(--ink-2); }
.field__input:focus { border-color: var(--ink); }
.field__input[aria-invalid="true"] { border-color: var(--rust); }
.field__error {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font: 500 var(--t-small)/1.4 var(--font-body);
  color: var(--rust);
}
.field__error svg { width: 16px; height: 16px; }
.form__foot { display: grid; justify-items: start; gap: var(--s-3); }
.form__privacy { font-size: var(--t-small); color: var(--ink-2); }
.form__status { font-weight: 500; min-height: 1.6em; }
.form__status.is-ok { color: var(--teal); }
.form__status.is-err { color: var(--rust); }
.hp { display: none !important; }
@media (min-width: 900px) { .form__row { grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); } }

.chips { min-width: 0; margin: 0; padding: 0; border: 0; }
.chips .field__label { margin-bottom: var(--s-2); }
.chips .field__hint { margin-bottom: var(--s-3); }
.chips__list { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; display: inline-flex; }
.chip__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.chip__label, .chip--btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: var(--surface);
  color: var(--ink);
  font: 500 0.9375rem/1.25 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease);
}
.chip__check { display: none; width: 16px; height: 16px; }
.chip__label:hover, .chip--btn:hover { border-color: var(--ink); }
.chip__input:checked + .chip__label, .chip--btn[aria-pressed="true"] {
  border-color: var(--teal);
  background: var(--teal-tint);
  color: var(--teal);
}
.chip__input:checked + .chip__label .chip__check, .chip--btn[aria-pressed="true"] .chip__check { display: inline-block; }
.chip__input:focus-visible + .chip__label { outline: 2px solid var(--focus); outline-offset: 3px; }
.chip--btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.chip--btn[aria-disabled="true"]:hover { border-color: var(--line-strong); }
.chip--btn[aria-pressed="true"][aria-disabled="true"] { opacity: 1; }

/* 4.10 Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.lattice { height: 48px; overflow: hidden; color: var(--tile-stroke); }
.lattice svg { display: block; width: 100%; height: 48px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-7) var(--col-gap);
  padding-top: var(--s-8);
  padding-bottom: var(--s-7);
}
.site-footer__brand, .site-footer__touch { grid-column: 1 / -1; }
.site-footer__brand p { max-width: 36ch; font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); }
.site-footer__brand .logo + p { margin-top: var(--s-3); }
.site-footer__brand p + p { margin-top: var(--s-1); }
.site-footer__h { margin-bottom: var(--s-2); font: 600 15px/1.4 var(--font-body); letter-spacing: 0; color: var(--ink); }
.site-footer__col ul a:not([class]) {
  display: inline-block;
  padding-block: 10px;
  font: 400 1rem/24px var(--font-body);
  color: var(--ink-2);
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-1) var(--ease);
}
.site-footer__col ul a:not([class]):hover { color: var(--ink); text-decoration-line: underline; }
.site-footer__col li.has-note a:not([class]) { padding-bottom: 0; }
@media (pointer: coarse), (max-width: 899.98px) {
  .site-footer__col li.has-note a:not([class]) { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
}
.site-footer__note { display: block; padding-bottom: 10px; font-size: var(--t-meta); line-height: 1.4; color: var(--ink-3); }
.site-footer__touch .email { display: inline-block; padding-block: 10px; font-weight: 400; color: var(--ink-2); }
.site-footer__touch .email:hover { color: var(--ink); }
.site-footer__touch p { font-size: var(--t-small); color: var(--ink-2); margin-top: var(--s-2); }
.site-footer__touch .link-arrow, .site-footer__touch .link-wa { font-weight: 500; }
.site-footer__legal {
  display: grid;
  gap: var(--s-2);
  padding-top: var(--s-5);
  padding-bottom: var(--s-7);
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
  line-height: 1.5;
  color: var(--ink-2);
}
@media (min-width: 900px) {
  .site-footer__legal { display: flex; justify-content: space-between; gap: var(--s-5); }
}
@media (min-width: 1000px) {
  .site-footer__grid { grid-template-columns: 5fr 2fr 2fr 3fr; }
  .site-footer__brand, .site-footer__touch { grid-column: auto; }
}

/* 4.11 Floating WhatsApp (phones and tablets only) */
.wa-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 70;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal);
  color: #FFFFFF;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-2) var(--ease), visibility 0s linear var(--dur-2);
}
.wa-fab.is-visible { opacity: 1; visibility: visible; transition: opacity var(--dur-2) var(--ease), visibility 0s; }
.wa-fab svg { width: 26px; height: 26px; }
:root[data-theme="dark"] .wa-fab { color: #0C1D21; }
@media (min-width: 900px) { .wa-fab { display: none !important; } }

/* ------------------------------------------------------------------
   5. Demos: shared contract
   ------------------------------------------------------------------ */
.demo { min-width: 0; container: demo / inline-size; }
.demo__window {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-window);
  color: var(--ink);
  font-size: var(--t-ui);
  line-height: 1.45;
  --focus: var(--focus-ui);
}
/* Window header: title on the first line, the caption as its meta line, and
   the reset control on the right of the title row. The caption is set once,
   as part of the frame, never as a loose paragraph under the card. */
.demo__bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 56px;
  padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4);
  border-bottom: 1px solid var(--line);
}
.demo__head { flex: 1; min-width: 0; padding-block: var(--s-1); }
.demo__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--s-3);
  font: 600 var(--t-ui)/1.3 var(--font-body);
}
.demo__cap { margin-top: 2px; font-size: var(--t-meta); line-height: 1.4; color: var(--ink-3); }
.demo__status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--t-meta);
  font-weight: 400;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.demo__reset {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 var(--s-3);
  border: 0;
  border-radius: var(--r-2);
  background: none;
  font: 600 var(--t-meta)/1.3 var(--font-body);
  color: var(--teal);
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease);
}
.demo__reset svg { width: 16px; height: 16px; }
.demo__reset:hover { background: var(--bg-alt); color: var(--teal-hover); }
@container (max-width: 479.98px) {
  .demo__reset { justify-content: center; width: 44px; padding: 0; }
  .demo__reset svg { width: 20px; height: 20px; }
  .demo__reset-text {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}
.demo button { cursor: pointer; }
.demo [aria-disabled="true"] { cursor: not-allowed; }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.dot--off { background: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.is-new { animation: insert var(--dur-2) var(--ease) both; }
.is-leaving { animation: leave var(--dur-2) var(--ease) both; }
@keyframes insert { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes leave { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(4px); } }

/* Segmented control (radiogroup) */
.seg {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: var(--surface);
}
.seg__btn {
  position: relative;
  min-height: 32px;
  padding: 0 var(--s-3);
  border: 0;
  border-radius: var(--r-1);
  background: none;
  color: var(--ink-2);
  font: 600 var(--t-ui)/1 var(--font-body);
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.seg__btn::after { content: ""; position: absolute; inset: -7px 0; }
.seg__btn:hover { color: var(--ink); background: var(--bg-alt); }
.seg__btn[aria-checked="true"] { background: var(--teal); color: var(--on-teal); }

/* Stepper */
.stepper {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: var(--surface);
}
.stepper__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: var(--r-1);
  background: none;
  color: var(--ink);
  transition: background-color var(--dur-1) var(--ease);
}
.stepper__btn::after { content: ""; position: absolute; inset: -5px -2px; }
.stepper__btn:hover { background: var(--bg-alt); }
.stepper__btn svg { width: 16px; height: 16px; }
.stepper__n { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper[aria-disabled="true"], .order__add[aria-disabled="true"] { opacity: .4; }
.stepper[aria-disabled="true"] .stepper__btn:hover { background: none; }

/* Switch */
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-1);
  background: none;
  color: var(--ink);
  font: 500 var(--t-ui)/1.2 var(--font-body);
  text-align: left;
}
.switch__track {
  position: relative;
  flex: none;
  width: 36px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px; /* unslop-ignore: a switch track is round in real UI */
  background: var(--bg-alt);
  transition: background-color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.switch__knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: transform var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}
.switch[aria-checked="true"] .switch__track { background: var(--teal); border-color: var(--teal); }
.switch[aria-checked="true"] .switch__knob { transform: translateX(16px); background: var(--on-teal); }
.switch--sm[aria-checked="false"] .switch__label { color: var(--ink-3); }
.switch--sm { min-height: 32px; font-size: var(--t-meta); color: var(--ink-2); }
.switch--sm::after { content: ""; position: absolute; inset: -6px -4px; }
.switch--sm .switch__track { width: 30px; height: 18px; }
.switch--sm .switch__knob { width: 12px; height: 12px; }
.switch--sm[aria-checked="true"] .switch__knob { transform: translateX(12px); }

/* Touch sizes: every demo control is at least 44x44 on touch screens and
   below 900px. Desktop pointers keep the tighter product-UI sizes. */
@media (pointer: coarse), (max-width: 899.98px) {
  .seg__btn { min-height: 44px; }
  .seg__btn::after { content: none; }
  .stepper, .order__line .stepper { height: auto; }
  .stepper__btn, .order__line .stepper__btn { width: 44px; height: 44px; }
  .stepper__btn::after, .order__line .stepper__btn::after { content: none; }
  .btn--xs, .btn--sm { min-height: 44px; }
  .btn--xs::after { content: none; }
  .switch--sm { min-height: 44px; }
  .switch--sm::after { content: none; }
  .order__note input { min-height: 44px; }
}

/* On the marigold stage */
.stage { --focus: var(--on-marigold); background: var(--stage-bg); color: var(--on-marigold); }
:root[data-theme="dark"] .stage .demo__window { border-color: rgba(0, 0, 0, .25); }

/* ------------------------------------------------------------------
   6. Demo: online ordering
   ------------------------------------------------------------------ */
.order { display: grid; }
.order__seg { display: flex; margin: var(--s-3) var(--s-4) 0; }
.order__seg .seg__btn { flex: 1; }
.order__menu-pane { display: flex; flex-direction: column; min-width: 0; }
.order__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name price" "desc ctl";
  gap: var(--s-1) var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line);
}
.order__item:last-child { border-bottom: 0; }
.order__name { grid-area: name; font-weight: 500; }
.order__price { grid-area: price; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.order__desc { grid-area: desc; align-self: start; font-size: 0.875rem; line-height: 1.4; color: var(--ink-2); }
.order__ctl { grid-area: ctl; display: flex; justify-content: flex-end; align-self: end; min-width: 102px; }
.js .order__ctl { min-height: 36px; }
@media (pointer: coarse), (max-width: 899.98px) { .js .order__ctl { min-height: 44px; min-width: 116px; } }
.order__more {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  min-height: 44px;
  margin: 0 var(--s-4) var(--s-3);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-2);
  background: none;
  color: var(--ink);
  font: 600 var(--t-ui)/1.2 var(--font-body);
}
.order__more:hover { border-style: solid; background: var(--bg-alt); }
.order__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: auto;
  padding: var(--s-3) var(--s-4);
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.order__summary p { font-weight: 600; }
.order__side { min-width: 0; border-top: 1px solid var(--line); }
.order__cart, .order__ticket { padding: var(--s-4); }
.order__ticket--static { border-top: 1px solid var(--line); }
.js .order__ticket--static { display: none; }
.order__cart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3); margin-bottom: var(--s-2); }
.order__h { font: 600 1rem/1.3 var(--font-body); letter-spacing: 0; }
.order__h:focus { outline: none; }
.order__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  padding-block: var(--s-2);
  border-bottom: 1px solid var(--line);
}
.order__line-total { text-align: right; font-variant-numeric: tabular-nums; }
.order__line-name { font-weight: 500; }
.order__line .stepper { grid-column: 1; justify-self: start; height: 32px; }
.order__line .stepper__btn { width: 30px; height: 30px; }
.order__line .stepper__btn::after { inset: -7px -2px; }
.order__empty { padding-block: var(--s-4); color: var(--ink-2); border-bottom: 1px solid var(--line); }
.order__totals {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: var(--s-1);
  margin-top: var(--s-3);
  font-variant-numeric: tabular-nums;
}
.order__totals dt { color: var(--ink-2); }
.order__totals dd { padding-left: var(--s-3); text-align: right; }
.order__totals .is-total { margin-top: var(--s-1); padding-top: var(--s-2); border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.order__modeline { margin-top: var(--s-2); font-size: var(--t-meta); color: var(--ink-3); }
.order__note { display: grid; gap: var(--s-1); margin-top: var(--s-3); }
.order__note span { font-size: var(--t-meta); font-weight: 600; color: var(--ink-2); }
.order__note input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
}
.order__note input::placeholder { color: var(--ink-3); opacity: 1; }
.order__note input:focus { border-color: var(--ink); }
.order__place { margin-top: var(--s-3); min-height: 44px; }
.order__hint { margin-top: var(--s-2); font-size: var(--t-meta); color: var(--ink-3); }

.ticket__pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 2px 8px;
  border-radius: var(--r-1);
  background: var(--teal-tint);
  color: var(--teal);
  font: 600 var(--t-meta)/1.5 var(--font-body);
}
.ticket__pill.is-ready { background: var(--ink); color: var(--bg); }
.ticket__pill.is-ready .dot { background: var(--bg); }
.ticket__h { margin-top: var(--s-3); font: 600 1.0625rem/1.3 var(--font-body); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.ticket__h:focus { outline: none; }
.ticket__meta { font-size: var(--t-meta); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ticket__tear { height: 0; margin: var(--s-3) 0; border: 0; border-top: 1px dashed var(--line-strong); }
.ticket__items li { padding-block: 2px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ticket__note { margin-top: var(--s-3); font-size: 0.875rem; color: var(--ink-2); }
.ticket__paid { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-2); font-size: 0.875rem; font-weight: 600; color: var(--teal); }
.ticket__paid svg { width: 16px; height: 16px; }
.ticket__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.ticket__done { margin-top: var(--s-4); font-size: var(--t-meta); color: var(--ink-3); }

@container (max-width: 539.98px) {
  /* Phone: three dishes, then "Show full menu (6)", so the hero demo stays a
     hero illustration and the next section starts within reach. */
  [data-ready] .order:not(.is-full-menu) .order__item:nth-child(n+4) { display: none; }
  [data-ready] .order:not(.is-full-menu) .order__item:nth-child(3) { border-bottom: 0; }
  [data-ready] .order__more { display: flex; }
  [data-ready] .order.is-full-menu .order__more { display: none; }
  .order[data-view="menu"] .order__side { display: none; }
  .order[data-view="cart"] .order__menu-pane { display: none; }
  .order[data-view="cart"] .order__side { border-top: 0; }
}
@container (min-width: 540px) {
  .order { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .order__seg, .order__summary { display: none; }
  .order__side { border-top: 0; border-left: 1px solid var(--line); }
}

/* ------------------------------------------------------------------
   7. Demo: AI chat
   ------------------------------------------------------------------ */
.chat { display: flex; flex-direction: column; }
/* The log is as tall as its content. With JS, site.js reserves the height of
   the tallest scripted conversation at the current width, so nothing is ever
   clipped or scrolled inside the window and nothing shifts as replies land. */
.chat__log {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4);
}
.chat__day { align-self: center; margin-bottom: var(--s-1); font-size: var(--t-meta); color: var(--ink-3); }
.chat__msg {
  max-width: 82%;
  padding: var(--s-3);
  border-radius: var(--r-2);
  font-size: var(--t-ui);
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.chat__msg--out {
  align-self: flex-end;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom-right-radius: 2px;
}
.chat__msg--in {
  align-self: flex-start;
  background: var(--cobalt-tint);
  border-bottom-left-radius: 2px;
}
.chat__msg--out + .chat__msg--in, .chat__msg--in + .chat__msg--out,
.chat__msg--out + .chat__typing { margin-top: var(--s-2); }
.chat__card {
  display: grid;
  gap: 2px;
  margin-top: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  background: var(--surface);
  font-size: 0.875rem;
}
.chat__card-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-1) var(--s-3); font-weight: 600; }
.chat__track span { display: flex; align-items: center; gap: var(--s-2); color: var(--ink-2); }
.chat__track span::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border: 1.5px solid var(--ink-3);
  border-radius: 50%;
}
.chat__track .is-done { color: var(--ink); }
.chat__track .is-done::before { border-color: var(--teal); background: var(--teal); }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 1px var(--s-2);
  border-radius: var(--r-1);
  background: var(--teal-tint);
  color: var(--teal);
  font: 600 var(--t-meta)/1.4 var(--font-body);
}
.chat__typing {
  display: flex;
  gap: var(--s-1);
  align-self: flex-start;
  padding: var(--s-4);
  border-radius: var(--r-2);
  border-bottom-left-radius: 2px;
  background: var(--cobalt-tint);
}
.chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); opacity: .3; animation: typing-dot 600ms steps(1, end) both; }
.chat__typing i:nth-child(2) { animation-delay: 200ms; }
.chat__typing i:nth-child(3) { animation-delay: 400ms; }
@keyframes typing-dot { 0% { opacity: .3; } 1% { opacity: 1; } 100% { opacity: .6; } }
.chat__suggest { padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); }
.chat__suggest-label { margin-bottom: var(--s-2); font-size: var(--t-meta); font-weight: 600; color: var(--ink-3); }
.chat__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chat__input { display: flex; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); }
.chat__input input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 0.875rem;
}
.chat__input input::placeholder { color: var(--ink-3); opacity: 1; }
.chat__input button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--surface-2);
  color: var(--ink-3);
}
.chat__input button svg { width: 18px; height: 18px; }
.demo .chat__input button { cursor: not-allowed; }

/* ------------------------------------------------------------------
   8. Demo: POS stock sync
   ------------------------------------------------------------------ */
.stock { display: grid; }
.stock__till { display: grid; align-content: start; gap: var(--s-3); padding: var(--s-4); border-bottom: 1px solid var(--line); }
.stock__till .btn { justify-self: start; }
.stock__h { font: 600 1rem/1.3 var(--font-body); letter-spacing: 0; }
.stock__h--table { margin-bottom: var(--s-3); }
.stock__sales li { padding-block: var(--s-2); border-top: 1px solid var(--line); }
.stock__sale { font-weight: 500; font-variant-numeric: tabular-nums; }
.stock__sync { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-meta); color: var(--teal); }
.stock__sync svg { width: 14px; height: 14px; }
.stock__empty { padding-block: var(--s-2); color: var(--ink-3); }
.stock__table-wrap { min-width: 0; padding: var(--s-4); }
.stock__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.stock__table th, .stock__table td {
  height: 48px;
  padding: var(--s-2) 0 var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: middle;
  font-weight: 400;
}
.stock__table th:first-child, .stock__table td:first-child { padding-left: 0; }
.stock__table td, .stock__table thead th:not(:first-child) { width: 1%; white-space: nowrap; }
.stock__table abbr { text-decoration: none; }
.th-short { display: none; }
@container (max-width: 479.98px) {
  .th-long { display: none; }
  .th-short { display: inline; }
}
.stock__table thead th {
  height: auto;
  padding-top: 0;
  font: 600 var(--t-meta)/1.3 var(--font-body);
  color: var(--ink-2);
  vertical-align: bottom;
}
.stock__table th[scope="row"], .stock__table thead th:first-child { text-align: left; }
.stock__table th[scope="row"] { font-weight: 500; }
.stock__table td:last-child { min-width: 52px; }
.stock__table tbody tr:last-child > * { border-bottom: 0; }
.stock__meter { display: block; max-width: 160px; height: 4px; margin-top: var(--s-2); overflow: hidden; border-radius: var(--r-1); background: var(--line); }
.stock__meter i { display: block; width: var(--w, 50%); height: 100%; background: var(--ink-2); transition: width var(--dur-2) var(--ease); }
.stock__table tr.is-low .stock__meter i { background: var(--rust); }
.pill-low {
  display: inline-block;
  padding: 2px var(--s-2);
  border-radius: var(--r-1);
  background: var(--rust-tint);
  color: var(--rust);
  font: 600 var(--t-meta)/1.3 var(--font-body);
}
.stock__table tr.is-flash > * { animation: flash 600ms var(--ease); }
@keyframes flash { from { background: var(--teal-tint); } to { background: transparent; } }
.stock__alert {
  margin-bottom: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--rust);
  border-radius: var(--r-2);
  background: var(--rust-tint);
}
.stock__alert-label { display: flex; align-items: center; gap: var(--s-2); font: 600 var(--t-meta)/1.3 var(--font-body); color: var(--rust); }
.stock__alert-label svg { width: 16px; height: 16px; }
.stock__alert-title { margin-top: var(--s-2); font: 600 1rem/1.3 var(--font-body); letter-spacing: 0; }
.stock__alert-lines { margin-top: 2px; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.stock__alert-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.stock__alert-actions .btn--secondary { background: var(--surface); }
.stock__result { display: flex; align-items: flex-start; gap: var(--s-2); margin-top: var(--s-3); font-size: 0.875rem; font-weight: 500; }
.stock__result:focus { outline: none; }
.stock__result svg { width: 18px; height: 18px; color: var(--teal); margin-top: 1px; }
@container (min-width: 640px) {
  .stock { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .stock__till { border-bottom: 0; border-right: 1px solid var(--line); }
}

/* ------------------------------------------------------------------
   9. Demo: connected system
   ------------------------------------------------------------------ */
.sync__control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-5);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--line);
}
.sync__item { display: flex; align-items: baseline; gap: var(--s-2); margin-right: auto; font-weight: 600; }
.sync__price { font-weight: 400; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sync__state {
  display: none;
  align-self: center;
  padding: 1px var(--s-2);
  border-radius: var(--r-1);
  background: var(--teal-tint);
  color: var(--teal);
  font: 600 var(--t-meta)/1.4 var(--font-body);
}
[data-ready] .sync__state { display: inline-block; }
[data-state="out"] .sync__state { background: var(--rust-tint); color: var(--rust); }
.sync__hint { flex-basis: 100%; font-size: var(--t-meta); line-height: 1.45; color: var(--ink-2); }
.sync__bus { display: none; }
.sync__panel { min-width: 0; padding: var(--s-4); border-top: 1px solid var(--line); }
.sync__panel:first-child { border-top: 0; }
.sync__panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 44px; margin-bottom: var(--s-3); }
.sync__panel-head :is(h3, h4) { font: 600 var(--t-ui)/1.3 var(--font-body); letter-spacing: 0; }
.sync__views { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-3); }
.sync__nojs-h { margin-bottom: var(--s-1); font-size: var(--t-meta); font-weight: 600; color: var(--ink-3); }
[data-ready] .sync__views { display: block; }
[data-ready] .sync__nojs-h { display: none; }
[data-ready] .sync__panel[data-shown="in"] .sync__when-out,
[data-ready] .sync__panel[data-shown="out"] .sync__when-in { display: none; }
.sync__when-in, .sync__when-out { min-width: 0; }
.mini-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-1) var(--s-2);
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  background: var(--surface-2);
}
.mini-row__name { font-weight: 500; }
.mini-row__price { margin-right: auto; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mini-add {
  padding: 2px var(--s-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  font: 600 var(--t-meta)/1.4 var(--font-body);
  color: var(--ink);
}
.mini-row--out .mini-row__name { color: var(--ink-3); }
.mini-row__out { flex-basis: 100%; font-size: var(--t-meta); color: var(--rust); font-weight: 600; }
.mini-chat { display: grid; gap: var(--s-2); }
.mini-chat p { max-width: 92%; padding: var(--s-2) var(--s-3); border-radius: var(--r-2); font-size: 0.875rem; line-height: 1.4; }
.mini-chat .is-out { justify-self: end; background: var(--surface-2); border: 1px solid var(--line); border-bottom-right-radius: 2px; }
.mini-chat .is-in { justify-self: start; background: var(--cobalt-tint); border-bottom-left-radius: 2px; }
.mini-ad__name { font-weight: 500; }
.mini-ad__state { display: flex; align-items: flex-start; gap: var(--s-2); margin-top: var(--s-1); font-size: 0.875rem; color: var(--ink-2); }
.mini-ad__state .dot { margin-top: 6px; }
.sync__stale { display: flex; align-items: flex-start; gap: var(--s-2); margin-top: var(--s-3); font-size: var(--t-meta); font-weight: 600; color: var(--rust); }
.sync__stale svg { width: 16px; height: 16px; margin-top: 1px; }
.sync__time { margin-top: var(--s-2); font-size: var(--t-meta); color: var(--ink-3); }
@container (min-width: 720px) {
  .sync__control { border-bottom: 0; }
  .sync__bus { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 32px; }
  .sync__bus::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 16px; background: var(--line-strong); }
  .sync__bus::after { content: ""; position: absolute; left: 16.667%; right: 16.667%; top: 16px; height: 1px; background: var(--line-strong); }
  .sync__wire { position: relative; overflow: hidden; }
  .sync__wire::before { content: ""; position: absolute; left: 50%; top: 16px; bottom: 0; width: 1px; background: var(--line-strong); transition: opacity var(--dur-2) var(--ease); }
  .sync__wire.is-unlinked::before { opacity: .3; }
  .sync__wire i { position: absolute; left: calc(50% - 1px); top: 16px; width: 3px; height: 8px; background: var(--teal); opacity: 0; }
  .sync__wire.is-pulse i { animation: wire var(--dur-3) var(--ease); }
  .sync__panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
  .sync__panel { border-top: 0; border-left: 1px solid var(--line); }
  .sync__panel:first-child { border-left: 0; }
  [data-ready] .sync__panels { border-top-color: var(--line); }
}
@keyframes wire { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; transform: translateY(8px); } }

/* ------------------------------------------------------------------
   10. Demo: listing check
   ------------------------------------------------------------------ */
.listing__head { display: grid; gap: var(--s-2); padding: var(--s-4); border-bottom: 1px solid var(--line); }
.listing__product { font-weight: 600; }
.listing__product span { margin-left: var(--s-2); font-weight: 400; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.listing__progress-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); }
.listing__progress { font-size: var(--t-meta); font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.segs { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 4px; width: 100%; max-width: 280px; margin-top: var(--s-1); }
.segs i { height: 4px; border-radius: var(--r-1); background: var(--line); transition: background-color var(--dur-2) var(--ease); }
.segs i.is-on { background: var(--teal); }
.listing__hint { font-size: var(--t-meta); line-height: 1.45; color: var(--ink-2); }
.listing__grid { display: grid; }
.listing__checks > li { border-bottom: 1px solid var(--line); }
.listing__checks > li:last-child { border-bottom: 0; }
.check {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
}
label.check { cursor: pointer; }
label.check:hover .check__box { border-color: var(--ink); }
.check__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.check__box {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-1);
  background: var(--surface);
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.check__box svg { width: 14px; height: 14px; color: var(--on-teal); opacity: 0; }
.check__input:checked + .check__box, .check.is-passed .check__box { background: var(--teal); border-color: var(--teal); }
.check__input:checked + .check__box svg, .check.is-passed .check__box svg { opacity: 1; }
.check__input:focus-visible + .check__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.check__text { grid-column: 2; display: grid; gap: 2px; min-width: 0; }
.check__label { font-weight: 600; }
.check__val { font-size: 0.875rem; color: var(--ink-2); overflow-wrap: anywhere; }
.check.is-done .check__val, .check.is-passed .check__val { color: var(--ink); }
.v-before, .v-after { display: block; }
.v-label { display: block; font: 600 var(--t-meta)/1.3 var(--font-body); color: var(--ink-3); }
.v-after .v-label { margin-top: var(--s-1); }
[data-ready] .v-label { display: none; }
[data-ready] [data-needs]:not(.is-after) .v-after,
[data-ready] [data-needs].is-after .v-before { display: none; }
.listing__previews { display: grid; align-content: start; gap: var(--s-5); padding: var(--s-4); border-top: 1px solid var(--line); }
.preview__h { margin-bottom: var(--s-2); font: 600 var(--t-meta)/1.3 var(--font-body); letter-spacing: 0; color: var(--ink-2); }
.serp { padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface-2); }
.serp__url { font-size: var(--t-meta); color: var(--ink-3); overflow-wrap: anywhere; }
.serp__title { margin-top: 2px; font-size: 1.125rem; line-height: 1.3; color: var(--teal); }
.serp__desc { margin-top: 2px; font-size: 0.875rem; color: var(--ink-2); }
.serp__meta { margin-top: var(--s-1); font-size: var(--t-meta); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ai-q { font-size: 0.875rem; color: var(--ink-2); }
.ai-a { margin-top: var(--s-2); padding: var(--s-3); border-radius: var(--r-2); border-bottom-left-radius: 2px; background: var(--cobalt-tint); font-size: 0.875rem; }
@container (min-width: 720px) {
  .listing__grid { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
  .listing__previews { border-top: 0; border-left: 1px solid var(--line); }
}

/* ------------------------------------------------------------------
   11. WhatsApp composer
   ------------------------------------------------------------------ */
.composer { container: composer / inline-size; min-width: 0; }
.composer__glyph { width: 16px; height: 16px; color: var(--teal); }
.composer__body { padding: var(--s-5) var(--s-4); }
.composer__title { font: 600 var(--t-h4)/1.25 var(--font-display); letter-spacing: -0.01em; }
.composer__hint { margin-top: var(--s-2); font-size: 1rem; color: var(--ink-2); }
.composer__draft {
  width: fit-content;
  max-width: 88%;
  margin: var(--s-5) 0 0 auto;
  padding: var(--s-3);
  border-radius: var(--r-2);
  border-bottom-right-radius: 2px;
  background: var(--teal-tint);
  color: var(--ink);
}
.composer__draft p { transition: opacity var(--dur-1) var(--ease); }
.composer__draft p.is-swapping { opacity: 0; }
.composer__meta { display: block; margin-top: 2px; text-align: right; font-size: var(--t-meta); color: var(--ink-2); }
.composer .chips__list { margin-top: var(--s-5); }
.composer__send { margin-top: var(--s-5); }
.composer__foot { margin-top: var(--s-2); font-size: var(--t-meta); color: var(--ink-3); }
@container composer (min-width: 480px) { .composer__body { padding: var(--s-6); } }

/* ------------------------------------------------------------------
   12. Page sections
   ------------------------------------------------------------------ */

/* 12.1 Home hero */
.hero { overflow-x: hidden; overflow-x: clip; }
.hero__grid { display: grid; }
.hero__text { padding-block: var(--s-7); }
.hero__title { font-size: inherit; }
.hero__lead, .hero__deck { display: block; text-wrap: balance; }
.hero__lead {
  max-width: 12ch;
  font: 600 var(--t-display)/0.98 var(--font-display);
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
}
.hero__deck {
  max-width: 24ch;
  margin-top: var(--s-4);
  font: 500 clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem)/1.15 var(--font-display);
  letter-spacing: -0.015em;
  color: var(--ink-2);
}
.hero__sub { max-width: 46ch; margin-top: var(--s-5); font-size: var(--t-lede); line-height: 1.5; color: var(--ink-2); }
.hero .cta-row { margin-top: var(--s-6); }
.hero__note { max-width: 48ch; margin-top: var(--s-3); font-size: 1rem; color: var(--ink-2); }
.stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-inline: calc(var(--gutter) * -1);
  padding: var(--s-5) var(--gutter);
}
@media (min-width: 768px) { .stage { padding-block: var(--s-6); } }
.stage .demo { width: 100%; max-width: 600px; }
@media (min-width: 1100px) {
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    min-height: 640px;
  }
  .hero__text { grid-column: 1 / span 6; align-self: center; padding-block: var(--s-7); padding-right: var(--s-5); }
  .stage {
    grid-column: 7 / span 6;
    margin-left: 0;
    margin-right: calc((100vw - min(100vw - 2 * var(--gutter), 1240px)) / -2);
    padding: var(--s-6);
  }
}
@media (min-width: 1340px) { .stage { padding: var(--s-7); } }

/* 12.2 Situations */
.sit__index { display: grid; margin-bottom: var(--s-6); border-top: 1px solid var(--line); }
.sit__tab {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  width: 100%;
  min-height: 56px;
  padding: var(--s-3) 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink-2);
  font: 500 var(--t-index)/1.15 var(--font-display);
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
  transition: color var(--dur-1) var(--ease);
}
.sit__tab::before {
  content: "";
  flex: none;
  align-self: center;
  width: 24px;
  height: 2px;
  background: transparent;
  transition: background-color var(--dur-1) var(--ease);
}
.sit__tab:hover, .sit__tab[aria-selected="true"] { color: var(--ink); }
.sit__tab[aria-selected="true"]::before { background: var(--ink); }
.sit__panel-title { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: var(--s-3); }
.sit__sounds { max-width: 30ch; font: 500 var(--t-deck)/1.25 var(--font-display); letter-spacing: -0.015em; color: var(--ink); }
.sit__do { max-width: 60ch; margin-top: var(--s-4); color: var(--ink-2); }
.sit__where { margin-top: var(--s-5); font-size: 1rem; line-height: 1.7; color: var(--ink-2); }
.sit__where-label { display: block; margin-bottom: 2px; font-weight: 600; color: var(--ink); }
.sit:not([data-ready]) .sit__panel + .sit__panel { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.sit[data-ready] .sit__panels { display: grid; }
.sit[data-ready] .sit__panel { grid-area: 1 / 1; }
.sit[data-ready] .sit__panel.is-hidden { visibility: hidden; }
.sit[data-ready] .sit__panel.is-in { animation: fade-in 160ms var(--ease); }
.sit[data-ready] .sit__panel:focus-visible { outline-offset: 8px; }
.sit[data-ready] .sit__panel-title {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
@media (min-width: 1100px) {
  .sit[data-ready] { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .sit__index { grid-column: 1 / span 5; margin-bottom: 0; }
  .sit__tab { padding: var(--s-4) 0; }
  .sit__panels { grid-column: 7 / span 6; }
  .sit:not([data-ready]) .sit__panels { max-width: 60ch; }
}

/* 12.3 Chapters (service groups on home) */
.chapters { display: grid; gap: var(--s-8); }
.chapter { display: grid; gap: var(--s-6); padding-top: var(--s-7); border-top: 1px solid var(--line); }
.chapter__text, .chapter__body { display: grid; align-content: start; gap: var(--s-5); min-width: 0; }
.chapter__text .chapter__head { margin-bottom: var(--s-1); }
.chapter__head { display: grid; align-content: start; justify-items: start; gap: var(--s-3); }
.chapter__title { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -0.015em; }
.chapter__promise { max-width: 44ch; font-size: var(--t-lede); line-height: 1.5; color: var(--ink-2); }
.chapter__note { max-width: 36ch; font-size: 1rem; color: var(--ink-2); }
.chapter__head .chapter__note { margin-top: var(--s-3); }
.chapter .link-arrow { justify-self: start; }
.chapter__demo { min-width: 0; }
@media (min-width: 900px) { .chapters { gap: var(--s-9); } }
@media (min-width: 1100px) {
  .chapter--ledger, .chapter--demo { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  /* Demo chapters: the shorter column centres on the longer one. */
  .chapter--demo { align-items: center; }
  .chapter--ledger .chapter__head { grid-column: 1 / span 4; }
  .chapter--ledger .chapter__body { grid-column: 5 / span 8; }
  .chapter--demo-left .chapter__text { grid-column: 8 / span 5; grid-row: 1; }
  .chapter--demo-left .chapter__demo { grid-column: 1 / span 7; grid-row: 1; }
  .chapter--demo-right .chapter__text { grid-column: 1 / span 5; grid-row: 1; }
  .chapter--demo-right .chapter__demo { grid-column: 6 / span 7; grid-row: 1; }
  .chapter--demo-left .chapter__text { padding-left: var(--s-4); }
  .chapter--demo-right .chapter__text { padding-right: var(--s-4); }
  /* The group intro and its links stay beside the list while it scrolls past. */
  .chapter--ledger .chapter__head { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
}

/* 12.4 Why one team (ink band) */
.why { display: grid; gap: var(--s-7); }
.why .ledger__label { color: var(--ink); }
.sh--why .sh__title { max-width: 16ch; }
@media (min-width: 1100px) {
  .why { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .why__text { grid-column: 1 / span 5; }
  .why__demo { grid-column: 7 / span 6; position: sticky; top: calc(var(--header-h) + var(--s-6)); }
}

/* 12.5 Process timeline */
.process { position: relative; display: grid; gap: var(--s-6); padding-left: var(--s-5); }
.process::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.process__step { position: relative; }
.process__step::before { content: ""; position: absolute; left: calc(-1 * var(--s-5) - 5px); top: 6px; width: 12px; height: 2px; background: var(--tick); }
.process__num { font: 600 var(--t-meta)/16px var(--font-body); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.process__title { margin-top: var(--s-2); font-size: var(--t-h4); line-height: 1.25; letter-spacing: -0.01em; }
.process__body { max-width: 40ch; margin-top: var(--s-2); color: var(--ink-2); }
.process--compact .process__body { max-width: none; font-size: var(--t-small); }
@media (min-width: 1100px) {
  .process { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col-gap); padding-left: 0; }
  .process::before { top: 28px; bottom: auto; right: 0; width: auto; height: 2px; }
  .process__step::before { left: 0; top: 23px; width: 2px; height: 12px; }
  .process__num { height: 28px; padding-left: 0; }
  .process__title { margin-top: calc(var(--s-5) + 2px); }
  .process__body { max-width: 30ch; }
}
.price-note { display: grid; gap: var(--s-3); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.price-note__label { font-size: var(--t-h4); line-height: 1.25; letter-spacing: -0.01em; }
.price-note__body { max-width: 60ch; color: var(--ink); }
@media (min-width: 1100px) {
  .price-note { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .price-note__label { grid-column: 1 / span 3; }
  .price-note__body { grid-column: 4 / span 7; }
}

/* 12.6 People */
.people { display: grid; gap: var(--s-6); }
.people__pair { display: grid; gap: var(--s-6); }
.person + .person { padding-top: var(--s-6); border-top: 1px solid var(--line); }
.person__name { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -0.015em; }
.person__role { margin-top: var(--s-1); font: 500 1rem/1.5 var(--font-body); color: var(--ink-2); }
.person__bio { max-width: 52ch; margin-top: var(--s-4); color: var(--ink-2); }
.person__email { margin-top: var(--s-4); }
.people__more { justify-self: start; }
.people__pair { padding-top: var(--s-6); border-top: 1px solid var(--line); }
@media (min-width: 768px) {
  .people__pair { grid-template-columns: 1fr 1fr; gap: 0; }
  .person:first-child { padding-right: var(--s-6); border-right: 1px solid var(--line); }
  .person + .person { padding-top: 0; padding-left: var(--s-6); border-top: 0; }
}
#people .sh__lede { max-width: 60ch; }

/* About, where we work: the statement on the left, the call-hours strip on the right. */
.where { display: grid; gap: var(--s-6); }
@media (min-width: 1100px) {
  .where { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
  .where__text { grid-column: 1 / span 6; }
  .where__times { grid-column: 8 / span 5; }
}

/* 12.7 Closing */
.closing { display: grid; gap: var(--s-8); }
.closing .sh--statement { margin-bottom: var(--s-5); }
.closing__line { max-width: 44ch; font-size: var(--t-lede); line-height: 1.5; color: var(--ink-2); }
.closing .cta-row { margin-top: var(--s-6); }
.helper { max-width: 44ch; margin-top: var(--s-3); font-size: 1rem; color: var(--ink-2); }
.emails { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.emails__label { font-size: var(--t-small); color: var(--ink-2); }
.emails__list { display: grid; gap: var(--s-1); margin-top: var(--s-2); }
.email--lg { display: inline-block; font: 500 var(--t-h4)/1.35 var(--font-body); }
.emails__desc { display: block; font-size: var(--t-small); color: var(--ink-2); }
.closing__side { display: grid; gap: var(--s-4); min-width: 0; }
.closing__side .link-arrow { justify-self: start; }
.closing--links .closing__side { gap: 0; }
.closing--links .closing__side .link-arrow { margin-top: var(--s-3); }
@media (min-width: 1100px) {
  .closing { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .closing__text { grid-column: 1 / span 5; }
  .closing__side { grid-column: 7 / span 6; }
  /* Inner pages: the statement across 7 columns, the onward links in the last 4,
     level with the heading. */
  .closing--links .closing__text { grid-column: 1 / span 7; }
  .closing--links .closing__side { grid-column: 9 / span 4; padding-top: calc(26px + var(--s-5)); }
}

/* 12.8 Inner page hero, breadcrumb, on-this-page */
.page-hero { padding-block: var(--s-8); }
.page-hero__grid { display: grid; gap: var(--s-7); }
.page-hero__title {
  max-width: 20ch;
  font-size: var(--t-display-long);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96;
}
.page-hero .bar--lg { display: block; margin-bottom: var(--s-5); }
.page-hero__intro { max-width: 56ch; margin-top: var(--s-5); font-size: var(--t-lede); line-height: 1.5; color: var(--ink-2); }
.page-hero__intro--ink { max-width: 60ch; color: var(--ink); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); font-size: 15px; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; text-underline-offset: 4px; }
.crumbs a:hover { color: var(--ink); text-decoration-line: underline; }
@media (pointer: coarse), (max-width: 899.98px) {
  .crumbs { align-items: center; margin-bottom: var(--s-4); }
  .crumbs a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
}
.onpage__label { margin-bottom: var(--s-2); font: 600 var(--t-small)/1.5 var(--font-body); color: var(--ink); }
.page-hero__onpage { max-width: 440px; margin-top: var(--s-7); }
.page-hero__note { max-width: 46ch; margin-top: var(--s-4); font-size: 1rem; color: var(--ink-2); }
@media (min-width: 900px) { .page-hero { padding-block: var(--s-9); } }
@media (min-width: 1100px) {
  .page-hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
  .page-hero__main { grid-column: 1 / span 8; }
}
/* Group pages: the home hero pattern. Heading, intro and the page index on the
   left; the group's working example on the marigold stage, bleeding right. */
.page-hero--demo { padding-block: 0; overflow-x: hidden; overflow-x: clip; }
.page-hero--demo .page-hero__grid { gap: 0; }
.page-hero--demo .page-hero__main { padding-block: var(--s-7); }
.page-hero--demo .page-hero__title { max-width: 17ch; font-size: clamp(2.375rem, 1.95rem + 1.52vw, 3.5rem); }
.page-hero--demo .stage .demo { max-width: 720px; }
.page-hero--demo .page-hero__onpage { margin-top: var(--s-7); }
@media (min-width: 900px) { .page-hero--demo { padding-block: 0; } }
@media (min-width: 1100px) {
  .page-hero--demo .page-hero__grid { grid-template-rows: auto 1fr; align-items: start; min-height: 640px; }
  .page-hero--demo .page-hero__main { grid-column: 1 / span 5; grid-row: 1; padding: var(--s-8) var(--s-4) 0 0; }
  .page-hero--demo .page-hero__onpage { grid-column: 1 / span 5; grid-row: 2; margin-top: var(--s-7); padding-bottom: var(--s-8); }
  .page-hero--demo .stage { grid-column: 6 / span 7; grid-row: 1 / span 2; align-self: stretch; padding: var(--s-6); }
}

/* 12.9 Services overview group blocks */
.group-block { display: grid; gap: var(--s-6); padding-top: var(--s-7); border-top: 1px solid var(--line); }
.group-block + .group-block { margin-top: var(--s-8); }
.group-block__meta { display: flex; align-items: center; gap: var(--s-3); }
.group-block__title { margin-top: var(--s-3); font-size: var(--t-h2); line-height: 1.05; letter-spacing: -0.025em; }
.group-block__desc { max-width: 52ch; margin-top: var(--s-4); color: var(--ink-2); }
.group-block__text .link-arrow { margin-top: var(--s-4); }
@media (min-width: 900px) { .group-block + .group-block { margin-top: var(--s-9); } }
@media (min-width: 1100px) {
  .group-block { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .group-block__text { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + var(--s-6)); }
  .group-block__list { grid-column: 7 / span 6; }
}

/* 12.10 Group page services */
/* One service per section: the heading, summary and the two facts on the left
   (sticky from 1100px), what's included on the right. */
.svc { display: grid; gap: var(--s-6); padding-top: var(--s-7); border-top: 1px solid var(--line); }
.svc + .svc { margin-top: var(--s-8); }
.svc__head { display: grid; align-content: start; justify-items: start; min-width: 0; }
.svc__head > .link-arrow, .svc__sample { margin-top: var(--s-4); }
.svc__detail { min-width: 0; }
.svc__h3 { margin-bottom: var(--s-3); font-size: var(--t-h4); line-height: 1.25; letter-spacing: -0.01em; }
.svc__detail .ledger + .svc__h3 { margin-top: var(--s-7); }
.svc__facts { display: grid; gap: var(--s-5); width: 100%; max-width: 52ch; margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.svc__facts dt { font: 600 1rem/1.4 var(--font-body); }
.svc__facts dd { margin-top: var(--s-2); color: var(--ink-2); }
.svc__note { margin-top: var(--s-5); max-width: 60ch; font-weight: 500; }
.svc__sample { display: grid; justify-items: start; }
.svc__sample small { font-size: var(--t-small); color: var(--ink-2); }
@media (min-width: 600px) and (max-width: 1099.98px) { .svc__facts { grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); max-width: none; } }
@media (min-width: 900px) { .svc + .svc { margin-top: var(--s-9); } }
@media (min-width: 1100px) {
  .svc { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .svc__head { grid-column: 1 / span 5; }
  .svc__detail { grid-column: 7 / span 6; }
}
@media (min-width: 1100px) and (min-height: 760px) {
  .svc__head { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
}

/* 12.11 Contact page */
.contact-split { display: grid; gap: var(--s-6); }
.contact-split__h { font-size: var(--t-h3); line-height: 1.15; letter-spacing: -0.015em; }
.contact-split__body { max-width: 44ch; margin-top: var(--s-3); color: var(--ink-2); }
.contact-split__meta { max-width: 44ch; margin-top: var(--s-3); font-size: var(--t-small); color: var(--ink-2); }
.contact-split__text .btn { margin-top: var(--s-5); }
/* Booking: the intro on one row, then the calendar across the full width so
   Cal.com lays out its details, month and times side by side. */
.contact-book { display: grid; gap: var(--s-6); }
.contact-book__act .contact-split__meta { margin-top: 0; }
.contact-book__act .btn { margin-top: var(--s-4); }
.contact-book__cal { min-width: 0; }
.cal-inline { min-height: 720px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-inline iframe:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.cal-inline__fallback { padding-block: var(--s-6); color: var(--ink-2); }
/* Calendar states: without JS the booking link shows; with JS a loading line shows
   until Cal reports the calendar ready, and the link returns if the embed fails. */
.cal-inline__loading { display: none; padding-block: var(--s-6); color: var(--ink-2); }
.js .cal-inline__loading { display: block; }
.js .cal-inline__fallback { display: none; }
.js .cal-inline.is-failed .cal-inline__fallback { display: block; }
.js .cal-inline.is-failed .cal-inline__loading,
.js .cal-inline.is-ready .cal-inline__loading,
.js .cal-inline.is-ready .cal-inline__fallback { display: none; }
/* Writing to us: the form on the left, what we ask for and the direct emails beside it. */
.contact-split__form .form { margin-top: var(--s-6); }
.contact-aside { display: grid; align-content: start; gap: var(--s-7); min-width: 0; }
.contact-aside__h { font-size: var(--t-h4); line-height: 1.25; letter-spacing: -0.01em; }
.asklist { margin-top: var(--s-4); border-top: 1px solid var(--line); }
.asklist li { padding-block: var(--s-3); border-bottom: 1px solid var(--line); color: var(--ink-2); }
.contact-aside .emails { margin-top: var(--s-4); padding-top: 0; border-top: 0; }
.contact-aside .emails__label { font-size: 1rem; color: var(--ink-2); }
.contact-aside .emails__list { gap: var(--s-3); margin-top: var(--s-3); }
.contact-aside .email--lg { font-size: 1.0625rem; }
@media (min-width: 900px) {
  .cal-inline { min-height: 640px; }
}
@media (min-width: 1100px) {
  .contact-split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .contact-split__text { grid-column: 1 / span 4; }
  .contact-split__side { grid-column: 6 / span 7; min-width: 0; }
  .contact-split__form { grid-column: 1 / span 7; min-width: 0; }
  .contact-aside { grid-column: 9 / span 4; padding-top: var(--s-2); }
  .contact-book__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
  .contact-book__intro > :first-child { grid-column: 1 / span 6; }
  .contact-book__act { grid-column: 8 / span 5; }
}

/* 12.12 404 */
.nf__meta { margin-bottom: var(--s-4); }
.nf__title {
  max-width: 16ch;
  margin-top: var(--s-6);
  font-size: var(--t-statement);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96;
}
.nf__line { max-width: 52ch; margin-top: var(--s-5); font-size: var(--t-lede); line-height: 1.5; color: var(--ink-2); }
.nf .linklist { max-width: 640px; margin-top: var(--s-7); }
.nf__cta { margin-top: var(--s-6); }

/* ------------------------------------------------------------------
   13. Theme switch, reduced motion, print
   ------------------------------------------------------------------ */
.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .site-header, .mmenu, .wa-fab, .skip, .lattice, [data-js-only], .demo__reset { display: none !important; }
  .sit__panel.is-hidden { visibility: visible !important; }
  .band--ink { background: none; }
  body { font-size: 11pt; }
}
