/*
  Slotty: scheduling app (Screenery template)
  1. Tokens: whiteboard white, three markers (black, blue, red), sticky-note yellow, aluminium rail. Patrick Hand + Mali.
  2. The marker kit: .sk draws a wobbly border on ::before through the #wob SVG filter, so text stays crisp and legible.
     Hatching, marker circles and underlines are CSS gradients and masks; sticky notes are tinted paper with a curl shadow.
  3. Sections in page order: rail, hero + booking board (calendar, slots, form, confirmation), how, setup, integrations,
     pricing, sign-up, questions, marker tray footer. Line-drawing motion lives at the end, behind prefers-reduced-motion.
*/

:root {
  /* Colour: the board and its markers */
  --board: #fcfdfc;                 /* whiteboard */
  --board-2: #f2f4f3;               /* faint erased residue, wells */
  --ink: #1c2230;                   /* black marker */
  --ink-2: #444c5c;                 /* secondary text */
  --ink-3: #5d6474;                 /* tertiary, unavailable days (5.6:1 on board) */
  --blue: #1d4fb5;                  /* blue marker */
  --blue-deep: #163d8f;             /* pressed */
  --blue-wash: #e6edfb;             /* light blue fill */
  --red: #b8302a;                   /* red marker (5.6:1 on board) */
  --red-wash: #fbe9e7;
  --sticky: #fff1a6;                /* sticky note */
  --sticky-edge: #efd96a;
  --metal: #c7ccd3;                 /* aluminium rail */
  --metal-hi: #eef0f3;
  --metal-lo: #9aa1ab;
  --ghost: rgba(28, 34, 48, 0.045); /* marker that was wiped off */

  /* Type */
  --hand: "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive;
  --body: "Mali", "Trebuchet MS", system-ui, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.625rem;
  --fs-h2: clamp(2.3rem, 1.4rem + 3vw, 3.8rem);
  --fs-h1: clamp(2.9rem, 1.2rem + 5.2vw, 5.6rem);

  /* Space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 120px;
  --gutter: clamp(16px, 3.6vw, 48px);
  --wrap: 1180px;

  /* Shape: no two corners the same, like a line drawn by hand */
  --r-sk: 16px 24px 14px 28px / 26px 14px 24px 16px;
  --r-sk-2: 22px 12px 26px 14px / 14px 26px 12px 22px;
  --r-btn: 255px 18px 225px 18px / 18px 225px 18px 255px;
  --stroke: 2.5px;
  --hatch: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--red) 42%, transparent) 0 1.6px, transparent 1.6px 7px);
  --hatch-blue: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--blue) 28%, transparent) 0 1.6px, transparent 1.6px 8px);

  /* Depth: paper stuck to a board */
  --note-shadow: 0 2px 2px rgba(28, 34, 48, 0.08), 0 14px 18px -12px rgba(28, 34, 48, 0.35);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 140ms;
  --t-mid: 300ms;

  color-scheme: light;
  accent-color: var(--blue);
}

/* ---------- Base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--ink-3) var(--board-2); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ink);
  caret-color: var(--blue);
  /* the board: white, with the ghosts of last week's meeting wiped off */
  background:
    radial-gradient(ellipse 420px 140px at 12% 18%, var(--ghost), transparent 70%),
    radial-gradient(ellipse 520px 160px at 88% 42%, var(--ghost), transparent 70%),
    radial-gradient(ellipse 380px 120px at 30% 68%, var(--ghost), transparent 70%),
    radial-gradient(ellipse 460px 150px at 78% 88%, var(--ghost), transparent 70%),
    var(--board);
  overflow-x: hidden;
}
::selection { background: var(--sticky); color: var(--ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--board-2); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 8px; border: 3px solid var(--board-2); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
a { color: var(--blue); text-underline-offset: 0.22em; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; }
img, svg { display: block; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--board); padding: 10px 16px; border-radius: 8px; }
.skip:focus, .skip:hover { top: 12px; color: var(--board); }
[hidden] { display: none !important; }
.red { color: var(--red); }

/* ---------- The marker kit ---------- */
/* .sk: the hand-drawn outline. The border lives on ::before and goes through the wobble filter; content is untouched. */
.sk { position: relative; isolation: isolate; border-radius: var(--r-sk); }
.sk::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: var(--sk-w, var(--stroke)) solid var(--sk-c, var(--ink));
  border-radius: inherit;
  background: var(--sk-bg, transparent);
  filter: url(#wob);
  pointer-events: none;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}

/* Marker underline for headings, tinted through a mask so it takes any colour */
.u { position: relative; display: inline; }
.u::after {
  content: "";
  position: absolute;
  left: -0.1em; right: -0.15em; bottom: -0.18em;
  height: 0.32em;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10C60 4 120 12 180 7s90-3 117 1' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10C60 4 120 12 180 7s90-3 117 1' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  pointer-events: none;
}

.h2 { font-family: var(--hand); font-weight: 400; font-size: var(--fs-h2); line-height: 1.05; letter-spacing: 0; }

/* Sticky notes */
.sticky {
  position: relative;
  background: linear-gradient(176deg, var(--sticky) 0 82%, color-mix(in srgb, var(--sticky-edge) 70%, var(--sticky)) 100%);
  color: var(--ink);
  padding: var(--s-4) var(--s-5);
  font-family: var(--hand);
  font-size: var(--fs-lg);
  line-height: 1.3;
  box-shadow: var(--note-shadow);
  border-radius: 2px 2px 14px 2px / 2px 2px 6px 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 10px 22px;
  border: 0;
  background: transparent;
  font-family: var(--body);
  font-weight: 600;
  font-size: var(--fs-md);
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--r-btn);
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-fast), color var(--t-fast);
}
.btn:hover { transform: translateY(-1px) rotate(-0.4deg); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: var(--fs-sm); }
.btn-blue { background: var(--blue); color: #fff; --sk-c: var(--blue-deep); }
.btn-blue:hover { background: var(--blue-deep); color: #fff; }
.btn-ink { background: var(--ink); color: var(--board); --sk-c: var(--ink); }
.btn-ink:hover { color: var(--board); background: #2d3547; }
.btn-ghost { --sk-c: var(--ink); background: var(--board); }
.btn-ghost:hover { background: var(--board-2); color: var(--ink); }
.btn-red { color: var(--red); --sk-c: var(--red); }
.btn-red:hover { color: var(--red); background: var(--red-wash); }
.btn-red-fill { background: var(--red); color: #fff; --sk-c: #8e231e; }
.btn-red-fill:hover { background: #9b2722; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; }
.btn.is-loading .spinner { display: inline-block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-loading .spinner { animation: none; border-right-color: currentColor; border-style: dotted; } .btn:hover { transform: none; } }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--board); border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%; color: var(--ink); }
.icon-btn:hover { background: var(--board-2); }
.icon-btn[disabled] { color: var(--ink-3); cursor: not-allowed; --sk-c: var(--ink-3); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--blue); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.link-btn:hover { color: var(--blue-deep); }
.link { font-weight: 600; }

/* Form bits */
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: var(--fs-sm); }
.opt { font-weight: 400; color: var(--ink-2); }
.sk-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sk-2);
  background: #fff;
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
textarea.sk-input { resize: vertical; min-height: 104px; }
.sk-input::placeholder { color: var(--ink-3); }
.sk-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.sk-input[aria-invalid="true"] { border-color: var(--red); background: var(--red-wash); }
.hint { font-size: var(--fs-xs); color: var(--ink-2); }
.hint.is-good { color: var(--blue); font-weight: 600; }
.err { font-size: var(--fs-xs); color: var(--red); font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.count { justify-self: end; font-variant-numeric: tabular-nums; }
.form { display: grid; gap: var(--s-4); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.form-alert { padding: var(--s-3) var(--s-4); border: 2px solid var(--red); background: var(--red-wash); color: #8e231e; border-radius: var(--r-sk-2); font-weight: 600; font-size: var(--fs-sm); }
.form-alert button { margin-top: 6px; }

.select-sk { display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--r-sk-2); background: #fff; --sk-w: 2px; }
.select-sk::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select-sk select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 9px 38px 9px 14px; min-height: 44px; max-width: 100%; width: 100%; border-radius: inherit; cursor: pointer; }
.select-sk select:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.check-sk, .radio-sk { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: var(--fs-sm); font-weight: 500; }
.check-sk input, .radio-sk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-sk .box { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 4px 6px 5px 7px; --sk-w: 2px; background: #fff; }
.check-sk .box .i { width: 18px; height: 18px; stroke: var(--blue); stroke-width: 3; opacity: 0; transform: scale(0.6) rotate(-10deg); transition: opacity var(--t-fast), transform var(--t-mid) var(--ease-out); }
.check-sk input:checked + .box .i { opacity: 1; transform: none; }
.check-sk input:focus-visible + .box, .radio-sk input:focus-visible + .dot { outline: 3px solid var(--blue); outline-offset: 3px; }
.radio-sk .dot { width: 24px; height: 24px; border-radius: 50% 46% 52% 48%; --sk-w: 2px; background: #fff; display: inline-grid; place-items: center; }
.radio-sk .dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); transform: scale(0); transition: transform var(--t-mid) var(--ease-out); }
.radio-sk input:checked + .dot::after { transform: scale(1); }

/* ---------- Rail (header) ---------- */
.rail {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, var(--metal-hi), var(--metal) 60%, var(--metal-lo));
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 6px 14px -8px rgba(28,34,48,.45);
}
.rail-in { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 8px var(--gutter); display: flex; align-items: center; gap: var(--s-5); }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-family: var(--hand); font-size: 1.9rem; line-height: 1; min-height: 44px; }
.logo:hover { color: var(--ink); }
.logo svg { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.logo-ring { stroke: var(--blue); stroke-width: 3.2; }
.logo-hand { stroke: var(--ink); stroke-width: 3; }
.logo-tick { stroke: var(--red); stroke-width: 3; }
.nav { display: flex; gap: var(--s-1); margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--fs-sm); background: linear-gradient(var(--blue), var(--blue)) no-repeat 12px calc(100% - 9px) / 0 2.5px; transition: background-size var(--t-mid) var(--ease-out); }
.nav a:hover { background-size: calc(100% - 24px) 2.5px; color: var(--ink); }

/* ---------- Hero ---------- */
.book { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: var(--s-7) var(--gutter) var(--s-8); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: var(--s-4) var(--s-7); align-items: end; margin-bottom: var(--s-7); }
.hero-title { font-family: var(--hand); font-weight: 400; font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.005em; max-width: 19ch; grid-column: 1; }
.circled { position: relative; white-space: nowrap; color: var(--blue); }
.circle-doodle { position: absolute; left: -0.22em; top: 0.02em; width: calc(100% + 0.5em); height: calc(100% + 0.06em); overflow: visible; pointer-events: none; }
.circle-doodle path { fill: none; stroke: var(--red); stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero-lede { grid-column: 1; max-width: 62ch; font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.55; }
.sticky-hero { position: relative; z-index: 3; grid-column: 2; grid-row: 1 / span 2; align-self: end; transform: rotate(2.5deg); max-width: 260px; margin-bottom: -18px; }
.sticky-hero .doodle { position: absolute; left: -64px; bottom: -40px; width: 84px; }

/* Doodled arrows */
.doodle { overflow: visible; pointer-events: none; }
.doodle path { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Board ---------- */
.board-wrap { position: relative; max-width: 1120px; margin: 0 auto; }
.board { background: #fff; padding: var(--s-5); --sk-w: 3px; border-radius: 20px 30px 18px 34px / 32px 18px 30px 20px; box-shadow: 0 30px 50px -40px rgba(28,34,48,.45); }
.board:focus { outline: none; }
.board-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); padding-bottom: var(--s-4); margin-bottom: var(--s-5); border-bottom: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); }
.steps { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps li { counter-increment: st; display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 500; }
.steps li::before { content: counter(st); display: inline-grid; place-items: center; width: 28px; height: 28px; font-family: var(--hand); font-size: 1.15rem; border: 2px solid currentColor; border-radius: 50% 44% 52% 46% / 46% 52% 44% 50%; }
.steps li.is-on { color: var(--blue); font-weight: 700; }
.steps li.is-on::before { background: var(--blue); color: #fff; border-color: var(--blue); }
.steps li.is-done { color: var(--ink); }
.steps li.is-done::before { content: "\2713"; font-family: var(--body); font-size: 0.85rem; }
.tz-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.tz-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-sm); }
.tz-tools .select-sk { max-width: 230px; }

.resched { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin: 0 0 var(--s-5); font-family: var(--body); font-size: var(--fs-sm); transform: rotate(-0.4deg); }

.board-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: var(--s-6); }

/* Host card */
.host { display: grid; gap: var(--s-4); align-content: start; }
.host-id { display: flex; gap: var(--s-3); align-items: center; }
.avatar { flex: none; }
.av-bg { fill: var(--sticky); }
.av-hair { fill: var(--ink); }
.av-line { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.av-pencil { fill: var(--red); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.host-name { font-family: var(--hand); font-size: 1.75rem; line-height: 1.05; }
.host-role { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.45; }
.host-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--ink-2); }
.host-meta li { display: flex; gap: 8px; align-items: flex-start; }
.host-meta .i { margin-top: 2px; color: var(--ink); }
#host-now { font-variant-numeric: tabular-nums; }

.types { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s-3); min-width: 0; }
.types legend { font-family: var(--hand); font-size: 1.45rem; margin-bottom: var(--s-2); padding: 0; }
.type { display: grid; gap: 4px; padding: 12px 14px; cursor: pointer; border-radius: var(--r-sk-2); --sk-w: 2px; --sk-c: color-mix(in srgb, var(--ink) 55%, transparent); transition: transform var(--t-fast) var(--ease-out); }
.type:nth-of-type(2) { border-radius: var(--r-sk); }
.type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type:hover { --sk-c: var(--ink); }
.type:has(input:checked) { --sk-c: var(--blue); --sk-w: 3px; --sk-bg: var(--blue-wash); }
.type:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 4px; }
.type-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); }
.type-name { font-weight: 700; }
.type-len { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 600; color: var(--blue); white-space: nowrap; }
.type-len .i { width: 16px; height: 16px; }
.type-desc { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.45; }

.summary { display: grid; gap: var(--s-2); padding: var(--s-4); background: var(--blue-wash); border-radius: var(--r-sk-2); }
.summary-type { font-family: var(--hand); font-size: 1.5rem; line-height: 1.1; color: var(--blue-deep); }
.summary-when { display: flex; gap: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary-when .i { margin-top: 3px; }
.summary-host { font-size: var(--fs-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Stage + calendar */
.stage { min-width: 0; }
.view-pick { display: grid; grid-template-columns: minmax(300px, 1.15fr) minmax(0, 1fr); gap: var(--s-6); }
.cal { position: relative; min-width: 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-3); }
.cal-title { font-family: var(--hand); font-weight: 400; font-size: 1.85rem; line-height: 1; }
.cal-grid { width: 100%; border-collapse: separate; border-spacing: 2px 4px; table-layout: fixed; }
.cal-grid th { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); padding: 4px 0; text-align: center; }
.cal-grid td { padding: 0; text-align: center; }
.day {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  max-width: 100%;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  isolation: isolate;
  transition: color var(--t-fast), background-color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.day:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.day.is-out { visibility: hidden; }
.day.is-today { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* open: a blue marker circle */
.day.is-open { color: var(--blue-deep); font-weight: 700; }
.day.is-open::before { content: ""; position: absolute; inset: 3px; z-index: -1; border: 2.5px solid var(--blue); border-radius: 50% 44% 52% 46% / 46% 52% 44% 50%; filter: url(#wob2); }
.day.is-open:hover { background: var(--blue-wash); transform: rotate(-3deg); }
/* fully booked: red hatching */
.day.is-full { color: var(--ink); }
.day.is-full::before { content: ""; position: absolute; inset: 4px; z-index: -1; background: var(--hatch); border-radius: 50%; filter: url(#wob2); }
.day.is-full:hover { background: var(--red-wash); }
.day.is-off { cursor: default; }
.day[aria-selected="true"], td[aria-selected="true"] .day { background: var(--blue); color: #fff; }
td[aria-selected="true"] .day::before { border-color: var(--blue-deep); }
td[aria-selected="true"] .day.is-full { background: var(--red); color: #fff; }
td[aria-selected="true"] .day.is-full::before { background: none; }
.cal-nojs { font-size: var(--fs-sm); color: var(--ink-2); padding: var(--s-4); border: 2px dashed var(--ink-3); border-radius: var(--r-sk-2); margin: var(--s-3) 0; }
.js .cal-nojs { display: none; }
.cal-empty { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%) rotate(-1.5deg); width: min(300px, 92%); display: grid; gap: var(--s-3); justify-items: start; z-index: 2; }
.legend { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-xs); color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 0.7rem; font-weight: 700; color: var(--ink-3); }
.lg-open { border: 2px solid var(--blue); filter: url(#wob2); }
.lg-full { background: var(--hatch); }
.away-note { margin-top: var(--s-2); font-family: var(--hand); font-size: 1.2rem; color: var(--red); }

/* Slots */
.slots { min-width: 0; display: flex; flex-direction: column; }
.slots-title { font-family: var(--hand); font-weight: 400; font-size: 1.7rem; line-height: 1.05; }
.slots-sub { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 4px; }
.slots-body { margin-top: var(--s-4); display: grid; gap: var(--s-4); align-content: start; max-height: 452px; overflow-y: auto; padding: 4px 8px 4px 4px; overscroll-behavior: contain; }
.slot-group h3 { font-size: var(--fs-xs); text-transform: none; font-weight: 700; color: var(--ink-2); margin-bottom: var(--s-2); }
.slot-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: var(--s-2); }
.slot { width: 100%; min-height: 54px; display: grid; gap: 0; padding: 6px 10px; border: 0; background: #fff; text-align: left; border-radius: var(--r-sk-2); --sk-w: 2px; --sk-c: color-mix(in srgb, var(--blue) 65%, transparent); transition: background-color var(--t-fast), transform var(--t-fast) var(--ease-out); }
.slot:nth-child(3n+2) { border-radius: var(--r-sk); }
.slot:hover { background: var(--blue-wash); transform: rotate(-0.8deg); }
.slot-you { font-weight: 700; font-size: var(--fs-md); color: var(--blue-deep); font-variant-numeric: tabular-nums; line-height: 1.3; }
.slot-host { font-size: var(--fs-xs); color: var(--ink-2); font-variant-numeric: tabular-nums; line-height: 1.3; }
.slot[aria-pressed="true"] { background: var(--blue); --sk-c: var(--blue-deep); --sk-w: 3px; }
.slot[aria-pressed="true"] .slot-you, .slot[aria-pressed="true"] .slot-host { color: #fff; }
.slot-tag { font-size: 0.72rem; font-weight: 700; color: var(--red); }
.slot[aria-pressed="true"] .slot-tag { color: #fff; }
.slots-go { margin-top: var(--s-4); position: sticky; bottom: 0; background: #fff; padding-top: var(--s-2); }
.slots-go .btn { width: 100%; }

/* empty-ish states inside the slots panel */
.slots-empty { display: grid; gap: var(--s-3); justify-items: start; padding: var(--s-4) 0; }
.slots-empty .doodle { width: 110px; }
.slots-empty p { color: var(--ink-2); font-size: var(--fs-sm); max-width: 34ch; }
.slots-empty .big { font-family: var(--hand); font-size: 1.45rem; color: var(--ink); line-height: 1.2; }
.full-stamp { display: inline-block; font-family: var(--hand); font-size: 1.6rem; color: var(--red); padding: 2px 14px; transform: rotate(-4deg); --sk-c: var(--red); border-radius: var(--r-btn); }

/* Details + confirmation */
.view-title { font-family: var(--hand); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.05; margin: var(--s-2) 0 var(--s-5); }
.view-title:focus { outline: none; }
.view-details .form { max-width: 560px; }
.back { margin-bottom: var(--s-1); }
.view-done, .view-cancelled { display: grid; justify-items: start; }
.done-tick { width: 96px; height: 72px; overflow: visible; }
.done-tick path { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.done-tick path + path { stroke: var(--ink); }
.done-tick.cross path { stroke: var(--red); }
.done-tick.cross path + path { stroke: var(--ink); }
.done-tick.small { width: 72px; height: 54px; }
.view-done .view-title, .view-cancelled .view-title { margin-bottom: var(--s-2); }
.done-lede { max-width: 56ch; color: var(--ink-2); }
.ticket { display: grid; gap: 0; margin: var(--s-5) 0; padding: 0; width: 100%; max-width: 620px; border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); }
.ticket > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s-3); padding: 10px 0; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 22%, transparent); }
.ticket > div:last-child { border-bottom: 0; }
.ticket > div { padding-inline: 4px; }
.ticket dt { font-family: var(--hand); font-size: 1.2rem; color: var(--ink-2); }
.ticket dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.done-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.cancel-box { margin-top: var(--s-5); padding: var(--s-5); width: 100%; max-width: 620px; display: grid; gap: var(--s-3); --sk-c: var(--red); background: var(--red-wash); }
.cancel-title { font-family: var(--hand); font-weight: 400; font-size: 1.6rem; color: #8e231e; }

/* Margin notes beside the board (wide screens) */
.mnote { position: absolute; width: 150px; font-family: var(--hand); font-size: 1.22rem; line-height: 1.3; color: var(--ink); display: none; }
.mnote .doodle { width: 96px; margin-top: 4px; }
.mnote-types { left: -172px; top: 330px; transform: rotate(-3deg); }
.mnote-types .doodle { margin-left: 70px; }
.mnote-cal { left: 330px; bottom: -78px; width: 300px; display: none; align-items: flex-end; gap: 10px; transform: rotate(-1.5deg); }
.mnote-cal .doodle { width: 64px; flex: none; margin: 0; }
.mnote-slots { right: -172px; top: 150px; transform: rotate(-2deg); }
.mnote-slots .doodle { margin-left: -24px; }
@media (min-width: 1360px) {
  .board-wrap { max-width: 1030px; }
  .board-body { grid-template-columns: 270px minmax(0, 1fr); }
  .mnote { display: block; }
  .mnote-cal { display: flex; }
  .book { padding-bottom: var(--s-9); }
}
@media (min-width: 1600px) { .board-wrap { max-width: 1120px; } .board-body { grid-template-columns: 290px minmax(0, 1fr); } }

/* ---------- How it works ---------- */
.how, .setup, .integ, .pricing, .signup, .faq { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: var(--s-8) var(--gutter); }
.how-strip { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7); position: relative; }
.how-step { display: grid; gap: var(--s-2); align-content: start; position: relative; }
.how-step:nth-child(2) { margin-top: var(--s-6); }
.how-step:nth-child(3) { margin-top: var(--s-3); }
.how-step:not(:last-child)::after { content: ""; position: absolute; right: -44px; top: 46px; width: 42px; height: 24px; background: var(--ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 24'%3E%3Cpath d='M2 14c10-6 22-8 34-3M30 4l7 7-9 5' fill='none' stroke='%23000' stroke-width='2.600' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 24'%3E%3Cpath d='M2 14c10-6 22-8 34-3M30 4l7 7-9 5' fill='none' stroke='%23000' stroke-width='2.600' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.how-pic { width: 100%; max-width: 240px; height: auto; margin-bottom: var(--s-2); filter: url(#wob2); }
.how-pic .ln { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.how-pic .blue { stroke: var(--blue); }
.how-pic .red { stroke: var(--red); }
.how-pic .fill-blue { fill: var(--hatch-blue); fill: color-mix(in srgb, var(--blue) 30%, transparent); stroke: var(--blue); stroke-width: 2.5; }
.how-step h3 { font-family: var(--hand); font-weight: 400; font-size: 1.75rem; line-height: 1.1; }
.how-step p { color: var(--ink-2); max-width: 34ch; }

/* ---------- Setup ---------- */
.setup { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: var(--s-7); align-items: start; }
.setup-intro { display: grid; gap: var(--s-5); position: sticky; top: 100px; }
.setup-intro > p { color: var(--ink-2); max-width: 44ch; }
.sticky-live { transform: rotate(-2deg); max-width: 280px; margin-top: var(--s-3); display: grid; gap: 4px; }
.sticky-live strong { font-size: 2rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.sticky-live .link { font-family: var(--body); font-size: var(--fs-sm); color: var(--blue-deep); }
.sticky-live.is-bump { animation: bump 500ms var(--ease-out); }
@keyframes bump { 30% { transform: rotate(-4deg) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .sticky-live.is-bump { animation: none; } }
.panel { background: #fff; padding: var(--s-6); display: grid; gap: var(--s-5); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-2) var(--s-4); }
.panel-title { font-family: var(--hand); font-weight: 400; font-size: 1.8rem; line-height: 1.05; }
.panel-tz { font-family: var(--body); font-size: var(--fs-sm); color: var(--ink-2); margin-left: 6px; }
.hours { display: grid; gap: 2px; }
.hrow { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: var(--s-3); padding: 6px 0; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 14%, transparent); min-height: 56px; }
.hrow:last-child { border-bottom: 0; }
.hday { font-weight: 600; }
.hval { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hctl { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.hctl .select-sk select { padding-right: 34px; font-variant-numeric: tabular-nums; }
.hctl .to { color: var(--ink-2); font-size: var(--fs-sm); }
.hrow .err { grid-column: 2; }
.hrow.is-off .hctl { opacity: 0.45; }
.hrow .offtxt { color: var(--ink-3); font-size: var(--fs-sm); }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.rules .select-sk { width: 100%; }

.dayline { display: grid; gap: var(--s-3); padding-top: var(--s-5); border-top: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); }
.dayline-title { font-family: var(--hand); font-size: 1.35rem; line-height: 1.1; }
.dl-track { position: relative; height: 86px; margin: 6px 0 0; }
.dl-axis { position: absolute; left: 0; right: 0; top: 64px; height: 2px; background: var(--ink); border-radius: 2px; }
.dl-tick { position: absolute; top: 60px; width: 2px; height: 10px; background: var(--ink); }
.dl-lab { position: absolute; top: 70px; transform: translateX(-50%); font-size: 0.72rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl-work { position: absolute; top: 4px; height: 54px; background: var(--hatch-blue); border: 2px solid color-mix(in srgb, var(--blue) 55%, transparent); border-radius: 6px 10px 6px 12px; }
.dl-buf { position: absolute; top: 10px; height: 42px; background: var(--hatch); opacity: 0.85; }
.dl-busy { position: absolute; top: 10px; height: 42px; background: var(--red); border-radius: 4px 7px 4px 8px; color: #fff; font-size: 0.7rem; font-weight: 700; display: grid; place-items: center; overflow: hidden; white-space: nowrap; }
.dl-slot { position: absolute; top: 14px; width: 3px; height: 34px; background: var(--blue-deep); border-radius: 2px; }
.dl-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-xs); color: var(--ink-2); }
.dl-key li { display: inline-flex; align-items: center; gap: 6px; }
.k { width: 18px; height: 12px; border-radius: 3px; display: inline-block; }
.k-work { background: var(--hatch-blue); border: 2px solid color-mix(in srgb, var(--blue) 55%, transparent); }
.k-busy { background: var(--red); }
.k-buf { background: var(--hatch); }
.k-slot { width: 3px; height: 14px; background: var(--blue-deep); }
.dl-text { font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- Integrations hub ---------- */
.integ-lede { color: var(--ink-2); max-width: 60ch; margin-top: var(--s-5); }
.hub { position: relative; margin-top: var(--s-6); min-height: 520px; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-lines .ln { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-dasharray: 2 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hub-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-2deg); width: 190px; height: 130px; display: grid; place-content: center; text-align: center; background: var(--blue); color: #fff; border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%; --sk-c: var(--blue-deep); --sk-w: 3px; }
.hub-logo { font-family: var(--hand); font-size: 2.4rem; line-height: 1; }
.hub-sub { font-size: var(--fs-xs); font-weight: 600; }
.hub-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: space-between; row-gap: 90px; position: relative; }
.spoke { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); background: #fff; font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-2); }
.spoke strong { color: var(--ink); font-family: var(--hand); font-weight: 400; font-size: 1.35rem; display: block; line-height: 1.1; }
.spoke:nth-child(odd) { transform: rotate(-1.2deg); }
.spoke:nth-child(even) { transform: rotate(1deg); border-radius: var(--r-sk-2); }
.spoke:nth-child(3), .spoke:nth-child(4) { margin-inline: -40px; }
.spoke:nth-child(3) { margin-right: 40px; }
.spoke:nth-child(4) { margin-left: 40px; }
.spoke-pic { width: 48px; height: 48px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.spoke-pic .blue { stroke: var(--blue); }
.hub-foot { margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--ink-2); text-align: center; }

/* ---------- Pricing ---------- */
.price-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-4); }
.bill { display: inline-flex; gap: var(--s-2); }
.bill label { position: relative; cursor: pointer; }
.bill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bill span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; font-weight: 600; font-size: var(--fs-sm); --sk-w: 2px; --sk-c: color-mix(in srgb, var(--ink) 45%, transparent); border-radius: var(--r-btn); }
.bill em { font-style: normal; font-family: var(--hand); font-size: 1.1rem; color: var(--red); font-weight: 400; }
.bill input:checked + span { --sk-c: var(--blue); --sk-w: 3px; background: var(--blue-wash); color: var(--blue-deep); }
.bill input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 220px; gap: var(--s-7); margin-top: var(--s-6); align-items: start; }
.plans-note { font-family: var(--hand); font-size: 1.35rem; line-height: 1.35; align-self: center; transform: rotate(-2deg); display: grid; gap: var(--s-2); }
.plans-note .doodle { width: 90px; }
.plans-note .red { font-size: 1.6rem; }
.plan { padding: var(--s-6); display: grid; gap: var(--s-3); align-content: start; background: #fff; }
.plan-pro { --sk-c: var(--blue); --sk-w: 3px; border-radius: var(--r-sk-2); }
.plan-pro::after { content: ""; position: absolute; right: 0; top: 0; width: 120px; height: 120px; background: var(--hatch-blue); border-top-right-radius: 24px; z-index: -1; -webkit-mask: linear-gradient(225deg, #000 0 50%, transparent 50%); mask: linear-gradient(225deg, #000 0 50%, transparent 50%); }
.plan-name { font-family: var(--hand); font-weight: 400; font-size: 2.2rem; line-height: 1; }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.amt { font-family: var(--hand); font-size: 3.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.per { color: var(--ink-2); font-weight: 600; }
.plan-for { color: var(--ink-2); font-size: var(--fs-sm); min-height: 3em; }
.plan-list { list-style: none; margin: var(--s-2) 0 var(--s-3); padding: 0; display: grid; gap: var(--s-2); }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list .i { color: var(--blue); stroke-width: 2.6; margin-top: 3px; }
.plan .btn { justify-self: start; }
.sticky-pro { position: absolute; right: -36px; bottom: -34px; width: 170px; transform: rotate(5deg); font-size: 1.15rem; padding: 12px 16px; }

/* ---------- Sign-up ---------- */
.signup { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-7); align-items: start; }
.signup-intro { display: grid; gap: var(--s-5); }
.signup-intro p { color: var(--ink-2); max-width: 40ch; }
.signup-intro .d6 { width: 150px; margin-left: 40%; }
.signup .panel { max-width: 620px; }
.handle { display: flex; align-items: center; padding: 0 0 0 14px; }
.handle:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.handle-pre { color: var(--ink-2); font-size: var(--fs-sm); white-space: nowrap; }
.handle input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 14px 10px 2px; min-height: 44px; }
.handle input:focus { outline: none; }
.handle.is-bad { border-color: var(--red); background: var(--red-wash); }
.plan-pick { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.plan-pick legend { margin-bottom: 2px; padding: 0; }
.signup-done { display: grid; gap: var(--s-3); justify-items: start; }
.signup-done .view-title { margin: 0; }
.signup-done:focus { outline: none; }
.form.is-done > :not(.signup-done) { display: none; }

/* ---------- Questions ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.5fr); gap: var(--s-5) var(--s-7); align-items: start; }
.faq-side { display: grid; gap: var(--s-6); }
.sticky-help { transform: rotate(1.8deg); max-width: 270px; }
.sticky-help a { font-family: var(--body); font-size: var(--fs-sm); font-weight: 600; color: var(--blue-deep); overflow-wrap: anywhere; }
.faq-list { display: grid; gap: var(--s-3); }
.qa { background: #fff; --sk-w: 2px; }
.qa:nth-child(even) { border-radius: var(--r-sk-2); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); min-height: 56px; cursor: pointer; font-weight: 600; font-size: var(--fs-md); border-radius: inherit; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .i { transition: transform var(--t-mid) var(--ease-out); color: var(--blue); stroke-width: 2.6; }
.qa[open] summary .i { transform: rotate(45deg); }
.qa[open] { --sk-c: var(--blue); }
.qa p { padding: 0 var(--s-5) var(--s-5); color: var(--ink-2); max-width: 68ch; }

/* ---------- Footer: marker tray ---------- */
.tray { margin-top: var(--s-7); background: linear-gradient(180deg, var(--metal-hi), var(--metal) 40%, #b8bec6); padding: 0 var(--gutter) var(--s-5); box-shadow: 0 -1px 0 rgba(255,255,255,.8) inset; }
.tray-pic { width: min(640px, 100%); height: auto; margin: 0 auto; transform: translateY(-34px); margin-bottom: -26px; }
.mk-body { fill: #e9ebee; stroke: var(--ink); stroke-width: 1.6; }
.mk-ink { fill: var(--ink); }
.mk-blue { fill: var(--blue); }
.mk-red { fill: var(--red); }
.ledge { fill: var(--metal-lo); }
.tray-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-6); }
.foot-brand p { margin-top: var(--s-2); font-size: var(--fs-sm); max-width: 36ch; color: #2b3240; }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.foot-nav h3 { font-family: var(--hand); font-weight: 400; font-size: 1.35rem; margin-bottom: 4px; }
.foot-nav a { display: flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.foot-nav a:hover { text-decoration: underline; color: var(--ink); }
.foot-note { max-width: var(--wrap); margin: var(--s-5) auto 0; padding-top: var(--s-3); border-top: 1.5px solid rgba(28,34,48,.25); font-size: var(--fs-xs); color: #2b3240; }

/* ---------- Signature motion: marker lines draw themselves (motion-safe only, drawn by default) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .draw path { stroke-dasharray: 1; animation: draw 900ms var(--ease-out) both; }
  .js .circle-doodle path { animation-duration: 1100ms; animation-delay: 300ms; }
  .js .d2 path { animation-delay: 1100ms; }
  .js .d2 path + path { animation-delay: 1500ms; }
  .js .d3 path, .js .d4 path, .js .d5 path { animation-delay: 1400ms; }
  .js .d3 path + path, .js .d4 path + path, .js .d5 path + path { animation-delay: 1800ms; }
  .js .done-tick path + path { animation-delay: 450ms; }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  .view.is-enter { animation: enter 420ms var(--ease-out) both; }
  @keyframes enter { from { opacity: 0.2; transform: translateY(10px); filter: blur(2px); } }
  /* scroll-driven: the integration hub's dotted lines are drawn as it comes in */
  @supports (animation-timeline: view()) {
    .hub-lines .ln { animation: dash linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes dash { from { stroke-dashoffset: 120; opacity: 0.3; } to { stroke-dashoffset: 0; opacity: 1; } }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .board-body { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .host { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4) var(--s-5); align-items: center; }
  .host-meta { grid-column: 2; }
  .types, .summary { grid-column: 1 / -1; }
  .types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .type-top { flex-wrap: wrap; gap: 0 var(--s-2); }
  .signup-intro .d6 { display: none; }
  .types legend { grid-column: 1 / -1; }
  .setup, .signup { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans-note { grid-column: 1 / -1; }
  .setup-intro { position: static; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .rail-in .btn { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .sticky-hero { grid-column: 1; grid-row: auto; justify-self: start; margin: var(--s-3) 0 var(--s-4); }
  .view-pick { grid-template-columns: minmax(0, 1fr); }
  .slots-body { max-height: none; overflow: visible; }
  .how-strip { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .how-step:nth-child(n) { margin-top: 0; }
  .how-step:not(:last-child)::after { right: auto; left: 40px; top: auto; bottom: -38px; transform: rotate(90deg); }
  .how-step { grid-template-columns: 140px minmax(0, 1fr); column-gap: var(--s-4); }
  .how-pic { grid-row: 1 / span 2; }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .hub { min-height: 0; }
  .hub-lines { display: none; }
  .hub-core { position: relative; left: auto; top: auto; transform: rotate(-2deg); margin: 0 auto var(--s-5); }
  .hub-list { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-3); }
  .spoke:nth-child(n) { margin: 0; }
  .sticky-hero .doodle { display: none; }
  .plans-note { justify-self: start; margin-top: var(--s-4); }
  .plans-note .doodle { display: none; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .sticky-pro { right: 8px; bottom: -40px; }
  .tray-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .types { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --stroke: 2.2px; }
  .book { padding-top: var(--s-6); }
  .board { padding: var(--s-4) var(--s-3); }
  .board-head { flex-direction: column; align-items: stretch; }
  .tz-tools .select-sk { max-width: none; flex: 1 1 200px; }
  .host { grid-template-columns: minmax(0, 1fr); }
  .host-meta { grid-column: 1; }
  .plans { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .dl-busy { font-size: 0; }
  .types, .summary { grid-column: 1; grid-row: auto; }
  .types { grid-template-columns: minmax(0, 1fr); }
  .day { width: 42px; height: 42px; }
  .cal-grid { border-spacing: 0 3px; }
  .how-step { grid-template-columns: minmax(0, 1fr); }
  .how-pic { grid-row: auto; max-width: 180px; }
  .panel { padding: var(--s-5) var(--s-4); }
  .hrow { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px 0; }
  .hrow .err { grid-column: 1; }
  .ticket > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .foot-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .handle-pre { font-size: var(--fs-xs); }
  .done-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .day { width: 38px; height: 38px; font-size: var(--fs-sm); }
}

/* Lead review fix: between 860 and 1200px the outset middle spokes pushed 4px past the viewport. Pull them in. */
@media (max-width: 1200px) {
  .spoke:nth-child(3), .spoke:nth-child(4) { margin-inline: -8px; }
  .spoke:nth-child(3) { margin-right: 8px; }
  .spoke:nth-child(4) { margin-left: 8px; }
  .sticky-pro { right: -6px; } /* the Pro sticky note hung 36px off the card's edge */
}
