/* ==========================================================================
   Nixie: marketing site
   Same world as the product: the :root block below is the product's own
   token set (app/nixie.css), copied rather than imported because /app/ sits
   behind sign-in and this page must style itself without it.

   Text only ever uses the text-safe tokens (--ink, --ink-soft, --muted,
   --rose-deep, --sage-deep and their on-wash variants). The raw pastels
   --rose and --sage are fills and borders, never type.
   ========================================================================== */

:root {
  --rose:        #d9a3ab;
  --rose-deep:   #94505d;
  --rose-on-wash: #94505d;
  --rose-wash:   #f2e4e6;
  --rose-faint:  #faf1f2;

  --sage:        #9db8a4;
  --sage-deep:   #4f6d58;
  --sage-on-wash: #4a6553;
  --sage-wash:   #e7efe9;

  --gold:        #e8cf9a;
  --gold-deep:   #7d612c;
  --gold-wash:   #f7eed9;

  --cream:       #fdfaf7;
  --paper:       #ffffff;
  --linen:       #f6f0ec;

  --ink-strong:  #2f282a;   /* the wordmark's ink; headings and the security band */
  --ink:         #4a3f42;
  --ink-soft:    #6b5d61;
  --muted:       #6f6368;

  --line:        #ebe0dd;
  --line-strong: #dccfcb;

  --ok:          #4f6d58;
  --warn:        #8a5f26;
  --late:        #9c4a55;
  --late-on-wash: #9c4a55;
  --late-wash:   #f6e3e5;

  /* Small radii. Surfaces are rectangles with the corners taken off. */
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 10px;
  --r-btn: 6px;

  /* Tight and nearly colourless. */
  --shadow-sm: 0 1px 1px rgba(47, 40, 42, 0.04);
  --shadow:    0 1px 2px rgba(47, 40, 42, 0.06);
  --shadow-lg: 0 2px 6px rgba(47, 40, 42, 0.10);

  /* A plain ease-out, no overshoot. */
  --ease: cubic-bezier(0.2, 0, 0.2, 1);

  /* marketing layout */
  --wrap: 1180px;
  --gutter: 28px;
  --section: clamp(76px, 9vw, 136px);
  --bar-h: 68px;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }

h1, h2, h3 { color: var(--ink-strong); margin: 0; font-weight: 700; text-wrap: balance; }

h1 {
  font-size: clamp(2.55rem, 1.35rem + 4.5vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.034em;
}
h2 {
  font-size: clamp(1.9rem, 1.25rem + 2.3vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
}
h3 {
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 0.9em; }

a { color: var(--rose-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.num { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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

.mk-skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 16px; border-radius: var(--r-btn); text-decoration: none;
  transition: top 0.2s var(--ease);
}
.mk-skip:focus { top: 12px; color: #fff; }

.mk-wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- shared product primitives (same values as the app) ---------- */

.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  padding: 9px 18px;
  border-radius: var(--r-btn);
  border: 1px solid var(--rose-deep);
  background: var(--rose-deep);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.nx-btn:hover { background: #a45d69; border-color: #a45d69; color: #fff; }
.nx-btn:active { transform: translateY(1px); }
.nx-btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.nx-btn.ghost:hover { background: var(--linen); color: var(--ink); }
.nx-btn.sage { background: var(--sage-deep); border-color: var(--sage-deep); }
.nx-btn.sm { font-size: 12.5px; padding: 6px 13px; }
.nx-btn.lg { font-size: 15.5px; padding: 14px 26px; }
.nx-btn svg { width: 16px; height: 16px; flex: none; }
span.nx-btn { cursor: default; }
span.nx-btn:active { transform: none; }

.nx-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: var(--linen);
  color: var(--ink-soft);
  white-space: nowrap;
}
.nx-pill.rose { background: var(--rose-wash); color: var(--rose-on-wash); }
.nx-pill.sage { background: var(--sage-wash); color: var(--sage-on-wash); }
.nx-pill.gold { background: var(--gold-wash); color: var(--gold-deep); }
.nx-pill.late { background: var(--late-wash); color: var(--late-on-wash); }
.nx-dot { width: 7px; height: 7px; border-radius: 1px; background: currentColor; flex: none; }

.nx-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--sage-wash);
  color: var(--sage-on-wash);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.nx-avatar.rose { background: var(--rose-wash); color: var(--rose-on-wash); }
.nx-avatar.gold { background: var(--gold-wash); color: var(--gold-deep); }
.nx-avatar.sm { width: 28px; height: 28px; font-size: 10.5px; }

.nx-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nx-fine { font-size: 12.5px; line-height: 1.55; color: var(--muted); }

/* class blocks, same fills as the timetable screen */
.cls {
  border-radius: var(--r-btn);
  padding: 6px 9px;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(74, 63, 66, 0.07);
  overflow: hidden;
  line-height: 1.25;
}
.cls b { display: block; font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.cls span { display: block; font-size: 10.5px; margin-top: 2px; font-weight: 600; }
.cls .room { font-size: 10px; font-weight: 700; letter-spacing: 0.02em; }
.cls .room i { font-style: normal; }
.cls.ballet  { background: var(--rose-wash); border-color: #e7c9cf; color: #8d4c58; }
.cls.jazz    { background: var(--sage-wash); border-color: #cadbcf; color: #47624f; }
.cls.tap     { background: #f7eed9;          border-color: #e7d6ae; color: #7d612c; }
.cls.contemp { background: #e8e4f0;          border-color: #d3cce3; color: #5d5379; }
.cls.hiphop  { background: #e2edf1;          border-color: #c9dde4; color: #3f6675; }

/* ---------- top bar ---------- */

.mk-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.mk-top-in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--bar-h);
}
.mk-brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; padding: 0 10px; margin-left: -10px; border-radius: var(--r-btn); }
.mk-brand:hover { background: var(--linen); }
.mk-brand img { height: 22px; width: auto; }

.mk-nav { display: flex; gap: 2px; margin-left: auto; }
.mk-nav a {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--r-btn);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.mk-nav a:hover { background: var(--linen); color: var(--ink); }

.mk-top-cta { display: flex; align-items: center; gap: 8px; flex: none; margin-left: 10px; }
.mk-top-cta .nx-btn { font-size: 14px; padding: 10px 20px; }

.mk-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  padding: 0;
  border-radius: var(--r-btn);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.mk-menu svg { width: 20px; height: 20px; }
.mk-menu .x { display: none; }
.mk-menu[aria-expanded="true"] .x { display: block; }
.mk-menu[aria-expanded="true"] .bars { display: none; }

@media (max-width: 900px) {
  .mk-menu { display: inline-flex; }
  .mk-top-cta { margin-left: auto; }
  .mk-nav {
    display: none;
    position: absolute;
    left: 12px; right: 12px;
    top: calc(100% + 8px);
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
  }
  .mk-nav[data-open="true"] { display: flex; }
  .mk-nav a { font-size: 16px; padding: 13px 16px; border-radius: var(--r-btn); }
}

/* ---------- hero ---------- */

/* overflow: clip contains the tilted plane, so the stack can run off the
   right-hand edge without ever giving the page a horizontal scrollbar. */
.mk-hero {
  padding: clamp(40px, 5vw, 76px) 0 clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
  overflow: clip;
}
.mk-hero h1 span { display: block; color: var(--rose-deep); }
.mk-lede {
  margin: 0;
  font-size: clamp(1.06rem, 1rem + 0.3vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 36em;
}
.mk-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.mk-hero-note {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}
.mk-hero-note svg { width: 17px; height: 17px; color: var(--sage-deep); flex: none; }

/* ---------- the real screens ----------
   Five captures laid on one tilted plane, like sheets on a drawing table.
   The plane is a parallel projection (a rotation, then a vertical
   foreshortening): no perspective, so nothing converges and nothing looms.
   Every length inside the stage is in cqw, so the whole arrangement scales
   with the column and needs no script to size it. */

.sc {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(28px, 3.4vw, 48px);
  padding-top: clamp(28px, 3.4vw, 48px);
  border-top: 1px solid var(--line-strong);
}
.sc-pitch  { grid-column: 1; grid-row: 1; min-width: 0; }
.sc-select { grid-column: 1; grid-row: 2; min-width: 0; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.sc-panel  { grid-column: 1; grid-row: 3; min-width: 0; margin-top: 20px; }
.sc-stage  { grid-column: 2; grid-row: 1 / span 3; min-width: 0; }

.sc-select h2 { font-size: 1.22rem; line-height: 1.25; letter-spacing: -0.015em; }
.sc-tabs { display: flex; flex-direction: column; margin-top: 14px; border-top: 1px solid var(--line); }
.sc-tab {
  display: flex; align-items: center; gap: 11px;
  width: 100%; text-align: left;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-soft);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 11px 10px; cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.sc-tab i { width: 8px; height: 8px; border-radius: 1px; background: var(--line-strong); flex: none; transition: background 0.18s var(--ease); }
.sc-tab:hover { background: var(--linen); color: var(--ink-strong); }
.sc-tab[aria-selected="true"] { background: var(--paper); color: var(--ink-strong); font-weight: 700; }
.sc-tab[aria-selected="true"] i { background: var(--rose-deep); }
.sc-tab:focus-visible { outline-offset: -2px; }

.sc-panel h3 { font-size: 1.05rem; }
.sc-panel p { margin-top: 6px; font-size: 0.95rem; line-height: 1.58; min-height: 6.4em; }
.sc-panel a { display: inline-block; margin-top: 8px; font-size: 0.92rem; font-weight: 700; }

.sc-stage {
  container-type: inline-size;
  /* run the table out to the edge of the window on wide screens */
  margin-right: calc(-1 * max(0px, (100vw - var(--wrap) - 2 * var(--gutter)) / 2));
}
.sc-box { position: relative; height: 79cqw; }
.sc-plane {
  position: absolute; left: 0; top: 14cqw; width: 100cqw; height: 74cqw;
  transform-origin: 0 0;
  transform: scaleY(0.88) rotate(-8deg);
}
/* the table the sheets lie on: it runs off the right-hand edge of the window */
.sc-plane::before {
  content: "";
  position: absolute; left: -3cqw; top: -2cqw; width: 240cqw; height: 79cqw;
  background: var(--linen);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
}
.sc-sheet {
  --s: 0.5;
  position: absolute; left: 0; top: 0;
  width: 72cqw; aspect-ratio: 16 / 10;
  padding: 0; margin: 0; font: inherit; color: inherit; text-align: left;
  background: var(--paper);
  border: calc(1px / var(--s)) solid var(--line-strong);
  border-radius: calc(8px / var(--s));
  box-shadow: 0 calc(2px / var(--s)) calc(7px / var(--s)) rgba(47, 40, 42, 0.13);
  cursor: pointer;
  transform-origin: 0 0;
  transform: translate(var(--x), var(--y)) scale(var(--s));
  transition: transform 0.5s var(--ease), border-radius 0.5s var(--ease);
}
.sc-sheet img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: 0 0; }
.sc-sheet[data-slot="0"] { --s: 1;   --x: 19cqw; --y: 15cqw; z-index: 5; cursor: default; }
.sc-sheet[data-slot="1"] { --x: 1cqw;  --y: 3cqw;  z-index: 1; }
.sc-sheet[data-slot="2"] { --x: 45cqw; --y: 2cqw;  z-index: 2; }
.sc-sheet[data-slot="3"] { --x: 0cqw;  --y: 30cqw; z-index: 3; }
.sc-sheet[data-slot="4"] { --x: 4cqw;  --y: 51cqw; z-index: 4; }
.sc-sheet:not([data-slot="0"]):hover { border-color: var(--rose-deep); }
.sc-sheet:focus-visible { outline: calc(2px / var(--s)) solid var(--rose-deep); outline-offset: calc(3px / var(--s)); border-radius: calc(8px / var(--s)); }

.sc-tag {
  position: absolute; left: 0; bottom: 100%;
  margin-bottom: calc(6px / var(--s));
  font-size: calc(12px / var(--s)); font-weight: 700; line-height: 1.4; white-space: nowrap;
  padding: calc(2px / var(--s)) calc(8px / var(--s));
  border-radius: calc(4px / var(--s));
  background: var(--paper); color: var(--ink-soft);
  border: calc(1px / var(--s)) solid var(--line-strong);
  transition: font-size 0.5s var(--ease), padding 0.5s var(--ease), margin 0.5s var(--ease);
}
.sc-sheet[data-slot="0"] .sc-tag { background: var(--ink-strong); border-color: var(--ink-strong); color: var(--cream); }

/* Narrower desktops: the pitch goes across the top so the rail is only the
   selector, and the rail and the table end at about the same height. */
@media (max-width: 1180px) {
  .sc { grid-template-columns: minmax(0, 270px) minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
  .sc-pitch {
    grid-column: 1 / -1; grid-row: 1;
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px;
    margin-bottom: 36px;
  }
  .sc-pitch .mk-lede { flex: 1 1 26em; }
  .sc-pitch .mk-cta-row { margin-top: 0; flex: none; }
  .sc-select { grid-row: 2; margin-top: 0; padding-top: 0; border-top: 0; }
  .sc-panel { grid-row: 3; }
  .sc-stage { grid-row: 2 / span 2; }
}

/* Below 900px the table is put away: no transforms, the selected screen lies
   flat at full width and the five labels become a simple selector above it. */
@media (max-width: 900px) {
  .sc { display: flex; flex-direction: column; }
  .sc-pitch { display: block; margin-bottom: 0; }
  .sc-pitch .mk-cta-row { margin-top: 24px; }
  .sc-select { margin-top: 32px; padding-top: 24px; }
  .sc-tabs { flex-direction: row; flex-wrap: wrap; gap: 6px; border-top: 0; }
  .sc-tab {
    width: auto; border: 1px solid var(--line-strong); border-radius: var(--r-btn);
    background: var(--paper); padding: 8px 12px; font-size: 14px; gap: 8px;
  }
  .sc-tab[aria-selected="true"] { border-color: var(--ink-strong); }
  .sc-stage { order: 3; margin: 16px 0 0; }
  .sc-panel { order: 4; margin-top: 16px; }
  .sc-panel p { min-height: 0; }
  .sc-box { height: auto; }
  .sc-plane { position: static; width: auto; height: auto; transform: none; }
  .sc-plane::before { display: none; }
  .sc-sheet {
    --s: 1;
    position: static; display: none; width: 100%; transform: none; transition: none;
    box-shadow: var(--shadow); cursor: default;
  }
  .sc-sheet[data-slot="0"] { display: block; }
  .sc-tag { display: none; }
}

/* ---------- sections ---------- */

.mk-sec { padding: var(--section) 0; position: relative; }
.mk-band-linen { background: var(--linen); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mk-band-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.mk-copy { min-width: 0; max-width: 35em; }
.mk-copy h2 + p, .mk-copy h3 + p { margin-top: 18px; }
.mk-copy p { max-width: 33em; }

/* a quiet list of particulars: bold lead-in, hairlines, no icons */
.mk-points { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.mk-points li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.97rem;
  line-height: 1.58;
}
.mk-points b { color: var(--ink); font-weight: 700; }

.mk-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
}
.mk-split.flip > .mk-copy { order: 2; }
.mk-split.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.mk-split + .mk-split { margin-top: var(--section); }
.mk-figure { margin: 0; min-width: 0; }

@media (max-width: 900px) {
  .mk-split, .mk-split.flip { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .mk-split.flip > .mk-copy { order: 0; }
}

/* drawn product fragments share one shell */
.fr {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
}
.fr-h {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.fr-h .t { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; line-height: 1.25; }
.fr-h .sub { font-size: 12.5px; color: var(--muted); }
.fr-h .end { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.fr-cap { margin-top: 16px; font-size: 0.9rem; line-height: 1.55; color: var(--muted); max-width: 46em; }

/* ---------- thesis ---------- */

.mk-thesis {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.mk-thesis-lead p { margin-top: 20px; max-width: 30em; }
.mk-facts { margin: 0; border-top: 1px solid var(--line-strong); }
.mk-facts > div { padding: 26px 0 28px; border-bottom: 1px solid var(--line-strong); }
.mk-facts dt {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.18;
  color: var(--ink-strong);
}
.mk-facts dd { margin: 10px 0 0; max-width: 36em; }
@media (max-width: 900px) {
  .mk-thesis { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- timetable ---------- */

.mk-tt-head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(20px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.mk-tt-head p { max-width: 33em; }
@media (max-width: 900px) { .mk-tt-head { grid-template-columns: minmax(0, 1fr); align-items: start; } }

.fr-tt { box-shadow: var(--shadow-lg); }
.fr-tt-body { display: grid; grid-template-columns: minmax(0, 1fr) 312px; }
.fr-tt-side { border-left: 1px solid var(--line); background: var(--cream); padding: 20px; display: grid; }
.fr-tt-side > * { grid-area: 1 / 1; align-self: start; }

.tt { --row: 46px; --timecol: 56px; --days: 5; --head: 48px; position: relative; min-width: 0; }
.tt-head, .tt-slots, .tt-layer {
  display: grid;
  grid-template-columns: var(--timecol) repeat(var(--days), minmax(0, 1fr));
}
.tt-head { height: var(--head); background: var(--linen); border-bottom: 1px solid var(--line); }
.tt-head > div {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 10px; border-left: 1px solid var(--line); min-width: 0;
}
.tt-head > div:first-child { border-left: 0; }
.tt-head b { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.tt-head .short { display: none; }
.tt-slots { grid-auto-rows: var(--row); }
.tt-slots .tm {
  font-size: 11px; color: var(--muted); text-align: right; padding: 5px 8px 0 0;
  line-height: 1; font-variant-numeric: tabular-nums; border-top: 1px solid var(--line);
}
.tt-slots .s { border-top: 1px solid var(--line); border-left: 1px solid var(--line); transition: background 0.3s var(--ease); }
.tt-slots .half { border-top-style: dotted; border-top-color: #f0e6e2; }
.tt-slots > :nth-child(-n + 6) { border-top-color: transparent; }
.tt-layer {
  position: absolute; left: 0; right: 0; top: var(--head);
  grid-template-rows: repeat(6, var(--row));
  pointer-events: none;
}
.tt-c {
  grid-column: calc(var(--d) + 1);
  grid-row: var(--r) / span var(--len);
  padding: 2px 3px 3px;
  min-width: 0;
  display: flex;
}
.tt-c .cls { flex: 1; min-width: 0; }

.tt-ghost .cls {
  background: transparent; box-shadow: none; border: 1.5px dashed var(--line-strong);
}
.tt-ghost { opacity: 0; transition: opacity 0.4s var(--ease); }

.tt-mover {
  z-index: 3;
  transition: transform 0.9s var(--ease);
  will-change: transform;
}
.tt-mover .cls { transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease); }

.tt[data-step="1"] .tt-ghost, .tt[data-step="2"] .tt-ghost, .tt[data-step="3"] .tt-ghost { opacity: 1; }
.tt[data-step="1"] .tt-mover .cls,
.tt[data-step="2"] .tt-mover .cls,
.tt[data-step="3"] .tt-mover .cls { box-shadow: 0 3px 10px rgba(47, 40, 42, 0.16); border-color: var(--rose-deep); }
.tt[data-step="1"] .tt-mover { transform: translate(0, -5px); }
.tt[data-step="2"] .tt-mover { transform: translate(100%, -5px); }
.tt[data-step="3"] .tt-mover { transform: translate(200%, calc(var(--row) - 5px)); }
.tt[data-step="4"] .tt-mover { transform: translate(200%, var(--row)); transition-duration: 0.35s; }
.tt[data-step="4"] .tt-mover .cls { border-color: var(--rose-deep); }

.tt[data-step="2"] .s.bad-t { background: #f8e6e8; }
.tt[data-step="3"] .s.ok-t, .tt[data-step="4"] .s.ok-t { background: var(--sage-wash); }
.tt[data-step="4"] .s.ok-t { background: transparent; transition-delay: 0.5s; }

/* side panel states, one per step, stacked in the same cell */
.tt-state { opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s; }
.fr-tt[data-step="0"] .st-idle, .fr-tt[data-step="1"] .st-idle,
.fr-tt[data-step="2"] .st-bad,
.fr-tt[data-step="3"] .st-ok,
.fr-tt[data-step="4"] .st-done { opacity: 1; visibility: visible; transition-delay: 0.1s, 0s; }

.tt-state .k { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tt-state .k b { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.tt-state p { font-size: 13.5px; line-height: 1.55; }
.tt-state ul { list-style: none; margin: 0; padding: 0; }
.tt-state li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 13.5px; line-height: 1.45; padding: 7px 0; border-top: 1px solid var(--line);
}
.tt-state li:first-child { border-top: 0; }
.tt-state li { text-wrap: balance; }
.tt-state li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.st-bad li { color: var(--late); font-weight: 700; }
.st-ok li { color: var(--sage-deep); font-weight: 700; }

.mv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 14px; margin: 0 0 14px; font-size: 13.5px; }
.mv dt { color: var(--muted); font-weight: 700; font-size: 12px; padding-top: 1px; }
.mv dd { margin: 0; color: var(--ink); font-weight: 700; }
.mv dd small { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-top: 1px; }
.mv-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.mk-tt-foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 28px; }
.mk-tt-foot .fr-cap { flex: 1 1 420px; }
.mk-replay {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink);
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  padding: 8px 16px; cursor: pointer;
  transition: background 0.18s var(--ease);
}
.mk-replay:hover { background: var(--linen); }
.mk-replay svg { width: 15px; height: 15px; }

@media (max-width: 1000px) {
  .fr-tt-body { grid-template-columns: minmax(0, 1fr); }
  .fr-tt-side { border-left: 0; border-top: 1px solid var(--line); min-height: 0; }
}
@media (max-width: 640px) {
  .tt { --days: 3; --timecol: 44px; --row: 48px; }
  .tt .d1, .tt .d5 { display: none; }
  .tt-c { grid-column: var(--d); }
  .tt-head > div { padding: 0 8px; }
  .tt-head .long { display: none; }
  .tt-head .short { display: inline; }
  .tt-slots .tm { padding-right: 6px; font-size: 10.5px; }
  .fr-tt-side { padding: 18px 16px; }
  .tt .cls { padding: 5px 7px; }
  .tt .cls .room i { display: none; }
}

/* ---------- building ---------- */

.fr-iso { padding: 0; }
.iso-svg { width: 100%; height: auto; }
.iso-slab  { fill: #f2ece8; stroke: var(--line-strong); stroke-width: 1; }
.iso-court { fill: #e3e9e3; stroke: #c6d2c7; stroke-width: 1.2; }
.iso-edge  { fill: none; stroke: #9b8b8f; stroke-width: 0.9; stroke-linejoin: round; }
.iso-crown { fill: none; stroke: var(--rose-deep); stroke-width: 1.6; stroke-dasharray: 5 5; stroke-linejoin: round; }
.iso-t { font-family: 'Hanken Grotesk', sans-serif; font-size: 15px; font-weight: 700; fill: var(--ink); text-anchor: middle; }
.iso-t-non { font-size: 12.5px; font-weight: 700; fill: var(--ink-soft); }
.iso-t-court { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; fill: #56695a; }

.iso-plan { padding: 10px 14px 4px; }
@media (max-width: 640px) {
  .iso-plan { padding: 8px 4px 0; }
  .iso-t { font-size: 21px; }
  .iso-t-non { font-size: 17px; }
  .iso-t-court { font-size: 14px; }
}
.iso-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
  padding: 14px 18px 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-soft); font-weight: 600;
}
.iso-legend .ramp-wrap { display: flex; align-items: center; gap: 9px; }
.iso-legend .ramp { display: flex; border-radius: 2px; overflow: hidden; border: 1px solid var(--line-strong); }
.iso-legend .ramp i { width: 30px; height: 15px; display: block; }
.iso-legend .key { display: inline-flex; align-items: center; gap: 8px; }
.iso-legend .sw { width: 22px; height: 15px; border-radius: 2px; border: 1px solid var(--line-strong); display: block; flex: none; }
.iso-legend .sw.gap { border: 1.6px dashed var(--rose-deep); background: #f3ede9; }
.iso-legend .sw.non { background: repeating-linear-gradient(45deg, #f4eeea, #f4eeea 4px, #e0d4cf 4px, #e0d4cf 7px); }

/* ---------- family card ---------- */

.fam-privacy {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--sage-wash); color: var(--sage-on-wash);
  padding: 14px 18px; border-bottom: 1px solid #d5e2d8;
}
.fam-privacy svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.fam-privacy b { display: block; font-size: 14px; font-weight: 700; }
.fam-privacy span { display: block; font-size: 12.5px; line-height: 1.5; margin-top: 2px; }

.fam-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
}
.fam-row .who { min-width: 0; flex: 1; }
.fam-row .who b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.fam-row .who span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }

.fam-sum { padding: 6px 18px 14px; }
.fam-sum .ln {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.fam-sum .ln span small { display: block; font-size: 12px; color: var(--muted); }
.fam-sum .ln .v { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fam-sum .ln.off .v { color: var(--sage-deep); }
.fam-sum .ln.tot { border-bottom: 0; padding-top: 12px; }
.fam-sum .ln.tot span, .fam-sum .ln.tot .v { font-size: 15.5px; font-weight: 700; color: var(--ink); }

/* ---------- reschedule ---------- */

.rs-stage { position: relative; display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 0; align-items: end; }
.rs-phone {
  border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--paper);
  box-shadow: var(--shadow-lg); overflow: hidden; position: relative; z-index: 1;
}
.rs-phone-in { background: var(--cream); font-size: 13px; line-height: 1.5; }
.rs-bar { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px 11px; background: var(--paper); border-bottom: 1px solid var(--line); }
.rs-bar b { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.rs-item { padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.rs-item .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rs-item .top b { font-size: 14px; font-weight: 700; color: var(--ink); display: block; line-height: 1.3; }
.rs-item .top span.w { font-size: 12.5px; color: var(--muted); display: block; }
.rs-item p { font-size: 12.5px; line-height: 1.55; margin-top: 9px; color: var(--ink-soft); }
.rs-item .nx-btn { margin-top: 11px; }
.rs-status { padding: 14px 16px 16px; background: #fdf8ee; }
.rs-status .nx-pill { margin-bottom: 8px; }
.rs-status b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 700; }
.rs-status p { font-size: 12.5px; line-height: 1.55; color: #6b5427; margin-top: 4px; }

.rs-office { margin-left: -26px; margin-bottom: 34px; position: relative; font-size: 13px; }
.rs-office .fr-h { padding-left: 40px; }
.rs-office .bd { padding: 6px 18px 14px 40px; }
.rs-ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rs-ch:last-child { border-bottom: 0; }
.rs-ch b { color: var(--ink); font-weight: 700; font-size: 13.5px; }
.rs-ch span.w { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) {
  .rs-stage { grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; }
  .rs-phone { max-width: 340px; width: 100%; }
  .rs-office { margin: 0; width: 100%; max-width: 420px; }
  .rs-office .fr-h { padding-left: 18px; }
  .rs-office .bd { padding-left: 18px; }
}
@media (max-width: 900px) {
  .rs-phone, .rs-office { max-width: 440px; }
}

/* ---------- messages ---------- */

.msg-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--cream); }
.bub { max-width: 86%; padding: 11px 15px; border-radius: var(--r); font-size: 13.5px; line-height: 1.55; }
.bub.them { background: var(--paper); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 2px; align-self: flex-start; }
.bub.us { background: var(--rose-wash); color: #5e343d; border-bottom-right-radius: 2px; align-self: flex-end; }
.msg-when { font-size: 11.5px; color: var(--muted); margin-top: -6px; }
.msg-when.r { align-self: flex-end; }
.trail { padding: 14px 18px 16px; border-top: 1px solid var(--line); }
.trail .nx-label { display: block; margin-bottom: 8px; }
.trail .tr { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; font-size: 13px; line-height: 1.5; padding: 5px 0; }
.trail .tr .t { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 1px; }
.trail .tr span { color: var(--ink-soft); }
.trail del { background: var(--late-wash); color: var(--late); text-decoration-thickness: 1.5px; padding: 1px 3px; border-radius: 2px; }
.trail ins { background: var(--sage-wash); color: var(--sage-on-wash); text-decoration: none; padding: 1px 3px; border-radius: 2px; font-weight: 700; }
.nodraft { display: flex; gap: 12px; padding: 14px 18px; background: #fdf8ee; border-top: 1px solid #e7d6ae; }
.nodraft svg { width: 18px; height: 18px; color: var(--warn); flex: none; margin-top: 2px; }
.nodraft b { display: block; font-size: 13.5px; color: #4f3d18; font-weight: 700; }
.nodraft span { display: block; font-size: 12.5px; color: #6b5427; line-height: 1.55; margin-top: 2px; }

/* ---------- staff ---------- */

.st-grp { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 12px 18px; background: var(--linen); border-bottom: 1px solid var(--line); }
.st-grp b { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.st-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.st-row:last-of-type { border-bottom: 0; }
.st-row .who { flex: 1; min-width: 0; }
.st-row .who b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.st-row .who span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.st-row .who .exp-late { color: var(--late); font-weight: 700; }
.st-row .who .exp-warn { color: var(--warn); font-weight: 700; }
.st-foot { padding: 12px 18px 14px; border-top: 1px solid var(--line); background: var(--cream); }
@media (max-width: 520px) {
  .st-row { flex-wrap: wrap; gap: 8px 12px; }
  .st-row .who { flex: 1 1 calc(100% - 46px); }
  .st-row .nx-pill { margin-left: 46px; }
}

/* ---------- payments ---------- */

.pay-masked {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.pay-masked .acct { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.pay-masked .acct + span { display: block; font-size: 12.5px; color: var(--muted); }
.pay-masked .nx-pill { margin-left: auto; }
.pay-inv { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.pay-inv .no b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pay-inv .no span { display: block; font-size: 12px; color: var(--muted); }
.pay-inv .amt { margin-left: auto; font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pay-sched { padding: 12px 18px 6px; }
.pay-sched .nx-label { display: block; margin-bottom: 4px; }
.pay-sched .ln { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pay-sched .ln:last-child { border-bottom: 0; }
.pay-sched .ln b { color: var(--ink); font-weight: 700; }
.pay-sched .ln .v { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pay-sched .ln s { color: var(--muted); text-decoration-thickness: 1.5px; margin-right: 6px; }
.pay-sched .ln small { display: block; font-size: 12px; color: var(--warn); font-weight: 700; }
.pay-fail { border-top: 1px solid var(--line); background: var(--cream); padding: 12px 18px 14px; }
.pay-fail .nx-label { display: block; margin-bottom: 6px; }
.pay-fail .ln { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 13px; line-height: 1.5; }
.pay-fail .ln .nx-pill { flex: none; margin-top: 1px; }

.mk-books {
  margin-top: var(--section);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
}
.mk-books > .mk-copy { order: 2; }
@media (max-width: 900px) {
  .mk-books { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .mk-books > .mk-copy { order: 0; }
}
.bk-map { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bk-map th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted); padding: 10px 18px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.bk-map td { padding: 11px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bk-map td b { color: var(--ink); font-weight: 700; display: block; }
.bk-map td small { font-size: 12px; color: var(--muted); display: block; }
.bk-map .code { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.bk-sum { padding: 13px 18px 15px; background: var(--cream); font-size: 13px; line-height: 1.55; }
.bk-sum b { color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  .bk-map th, .bk-map td { padding-left: 14px; padding-right: 10px; }
  .bk-map .tax { display: none; }
}

/* ---------- security (an ink stage, inset) ---------- */

.mk-sec-security { background: var(--ink-strong); }
.sx { color: #e9dfdc; }
.sx h2, .sx h3 { color: var(--cream); }
.sx-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(20px, 5vw, 72px); align-items: end; }
.sx-head p { color: #e2d6d3; max-width: 33em; }

.sx-map {
  margin: clamp(32px, 4vw, 52px) 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 2.6fr);
  align-items: center;
}
.sx-node {
  background: var(--cream); color: var(--ink);
  border-radius: var(--r); padding: 14px 15px 15px;
  min-width: 0;
}
.sx-node b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.sx-node span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); margin-top: 4px; }
.sx-node svg { width: 20px; height: 20px; margin-bottom: 9px; color: var(--ink-soft); }
.sx-node.edge { background: var(--sage-wash); }
.sx-node.edge span, .sx-node.edge svg { color: var(--sage-on-wash); }
.sx-node.syd { background: var(--rose-wash); }
.sx-node.syd span, .sx-node.syd svg { color: var(--rose-on-wash); }
.sx-arrow { color: #b9aaa7; justify-self: center; }
.sx-arrow svg { width: 22px; height: 22px; }
.sx-au {
  position: relative;
  border: 1.5px dashed #b49ba0;
  border-radius: var(--r-lg);
  padding: 30px 14px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  align-items: center;
}
.sx-au-tag {
  position: absolute; top: -12px; left: 16px;
  background: var(--ink-strong); padding: 0 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #f2e4e6;
}
.sx-world {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #dbe7de;
  text-align: center; margin-top: 9px;
}
.sx-col { min-width: 0; }

.sx-bank {
  margin: clamp(28px, 3vw, 40px) 0 clamp(36px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid #574c4f;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 24px clamp(28px, 5vw, 72px);
  align-items: center;
}
.sx-bank-copy p { margin-top: 10px; font-size: 0.95rem; line-height: 1.6; color: #e2d6d3; max-width: 32em; }
.sx-bank-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.sx-node.sm { padding: 12px 14px; }
.sx-node.sm span { margin-top: 2px; font-variant-numeric: tabular-nums; }
.sx-hop { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #b9aaa7; }
.sx-hop span { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #dccfcb; white-space: nowrap; }
.sx-hop svg { width: 22px; height: 22px; }

.sx-lower { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.sx-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); border-top: 1px solid #574c4f; }
.sx-facts > div { padding: 20px 0 22px; border-bottom: 1px solid #574c4f; }
.sx-facts dt { font-size: 1.12rem; font-weight: 700; color: var(--cream); letter-spacing: -0.01em; }
.sx-facts dd { margin: 7px 0 0; font-size: 0.95rem; line-height: 1.6; color: #e2d6d3; }

.sx-signin h3 + p { margin-top: 10px; font-size: 0.95rem; line-height: 1.6; color: #e2d6d3; }
.si { margin-top: 18px; background: var(--cream); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 8px; }
.si .opt {
  display: flex; align-items: center; gap: 11px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  padding: 10px 16px; font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.si .opt svg { width: 17px; height: 17px; flex: none; color: var(--ink-soft); }
.si .or { text-align: center; font-size: 12px; color: var(--muted); }
.si .nx-fine { margin-top: 4px; text-align: center; }

.sx-honest {
  margin-top: clamp(28px, 4vw, 48px);
  border: 1px solid #e7d6ae; background: #fdf8ee; color: #6b5427;
  border-radius: var(--r-lg);
  padding: 20px 24px;
  font-size: 0.97rem; line-height: 1.65;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px clamp(24px, 4vw, 56px);
}
.sx-honest b { color: #4f3d18; }
.sx-honest p { margin: 0; }

@media (max-width: 1000px) {
  .sx-head, .sx-lower { grid-template-columns: minmax(0, 1fr); }
  .sx-map { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sx-arrow { transform: rotate(90deg); margin: 6px 0; }
  .sx-au .sx-arrow { margin: 6px 0; }
  .sx-au { grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
  .sx-world { text-align: left; margin: 8px 0 0 2px; }
  .sx-honest { grid-template-columns: minmax(0, 1fr); }
  .sx-bank { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .sx-bank-flow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sx-hop { flex-direction: row; gap: 8px; padding: 2px 0 2px 14px; }
  .sx-hop svg { transform: rotate(90deg); }
}
@media (max-width: 640px) {
  .sx-facts { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- pricing ---------- */

.pr { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 92px); align-items: center; }
.pr-price { display: flex; align-items: flex-end; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.pr-price .amt { font-size: clamp(4.2rem, 3rem + 5vw, 6.4rem); font-weight: 700; letter-spacing: -0.05em; line-height: 0.86; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.pr-price .per { font-size: 1.05rem; font-weight: 700; color: var(--ink-soft); line-height: 1.35; padding-bottom: 6px; }
.pr-copy > p { margin-top: 22px; max-width: 32em; }

.calc { padding: clamp(20px, 3vw, 30px); overflow: visible; }
.calc label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.calc-in { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.calc-in input[type="number"] {
  width: 104px; flex: none; font: inherit; font-size: 20px; font-weight: 700; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 9px 12px; font-variant-numeric: tabular-nums;
}
.calc-in input[type="number"]:focus { border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-wash); outline: none; }
.calc-in input[type="range"] { flex: 1; min-width: 0; accent-color: var(--rose-deep); height: 28px; }
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.calc-presets button {
  font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink-soft);
  background: var(--linen); border: 1px solid transparent; border-radius: var(--r-btn);
  padding: 6px 13px; cursor: pointer; transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.calc-presets button:hover { background: var(--rose-wash); color: var(--rose-on-wash); }
.calc-out { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.calc-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.calc-total output { font-size: clamp(2.3rem, 1.8rem + 2vw, 3.1rem); font-weight: 700; letter-spacing: -0.035em; color: var(--ink-strong); line-height: 1; font-variant-numeric: tabular-nums; }
.calc-total span { font-size: 14px; font-weight: 700; color: var(--muted); }
.calc-work { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); min-height: 3.2em; }
.calc-work b { color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-meter { margin-top: 16px; }
.calc-meter .track { position: relative; height: 8px; border-radius: 2px; background: var(--linen); overflow: hidden; }
.calc-meter .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--rose-deep); border-radius: 0; transition: width 0.3s var(--ease), background 0.3s var(--ease); }
.calc-meter[data-capped="true"] .fill { background: var(--sage-deep); }
.calc-meter .ends { display: flex; justify-content: space-between; margin-top: 7px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.pr-note {
  margin-top: clamp(40px, 5vw, 68px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line-strong);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 14px clamp(36px, 6vw, 92px);
}
.pr-note p { max-width: 38em; }
@media (max-width: 900px) {
  .pr, .pr-note { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- closing ---------- */

.mk-close { background: var(--linen); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(64px, 8vw, 112px) 0; }
.mk-close-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 56px; }
.mk-close-in > div:first-child { flex: 1 1 520px; min-width: 0; }
.mk-close h2 { max-width: 16em; }
.mk-close p { max-width: 34em; margin-top: 18px; }
.mk-close .mk-cta-row { margin-top: 0; }

/* ---------- footer ---------- */

.mk-foot { background: var(--cream); padding: 64px 0 40px; font-size: 0.95rem; }
.mk-foot-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.mk-foot-brand img { height: 24px; width: auto; }
.mk-foot-brand .mk-brand { margin-left: -10px; }
.mk-foot-brand p { margin-top: 14px; color: var(--muted); max-width: 22em; }
.mk-foot h3 { font-size: 0.95rem; font-weight: 700; letter-spacing: 0; color: var(--ink); margin-bottom: 12px; }
.mk-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mk-foot li a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.mk-foot li a:hover { color: var(--rose-deep); text-decoration: underline; }
.mk-foot-fine {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-strong);
  font-size: 0.82rem; line-height: 1.6; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 10px 40px; justify-content: space-between;
}
.mk-foot-fine p { max-width: 62em; margin: 0; }
@media (max-width: 760px) {
  .mk-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-foot-brand { grid-column: 1 / -1; }
}

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  :root { --gutter: 18px; --bar-h: 62px; }
  body { font-size: 1.03rem; }
  .mk-brand img { height: 21px; }
  .mk-top-cta .nx-btn { padding: 9px 17px; }
  .mk-cta-row .nx-btn.lg { flex: 1 1 auto; }
  .bub { max-width: 92%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .mk-replay { display: none; }
}
