/* Design C of the home story: the day's clock. A light, warm page; one clock dial for one working day (08:00-20:00)
 * in the middle. Scrolling turns the hands; at each chapter's hour one moment card springs out of the dial and settles
 * beside it, so the day fills up around the clock. Flat colour by category; the brand gradient only on the day ruler.
 */

:root {
  --bg: #fbf6ee;
  --bg-2: #f3eadb;
  --surface: #ffffff;
  --ink: #1e1b3a;
  --ink-2: #57536f;
  --ink-3: #8f8aa6;
  --line: #e9dfcf;
  --indigo: #5b4bff;
  --coral: #ff6b4a;
  --green: #12b76a;
  --green-deep: #0a8550; /* white text on green */
  --coral-deep: #d23f1f; /* white text on coral */
  --violet: #9b5cff;
  --amber: #ffad1f;
  --sky: #2e9bf0;
  --pink: #f0468c;
  --teal: #10b3a3;
  --brand: linear-gradient(to left, #5b4bff, #a24bff 40%, #ff4f9a 75%, #ff7a52);
  --gutter: clamp(16px, 5vw, 72px);
  --header-h: 64px;
  --band-h: 50px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 2px rgba(30, 27, 58, 0.06), 0 16px 34px -18px rgba(30, 27, 58, 0.28);
  --k: 1;
  --canvas-left: 40px;
}

* { box-sizing: border-box; }

html { background: var(--bg); color-scheme: light; scrollbar-color: #d9ccb6 var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 'Rubik', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #ffd8cc; color: var(--ink); }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 12px; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
h1 em, h2 em { font-style: normal; color: var(--indigo); }

/* ---------- header ---------- */

.c-top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding-inline: var(--gutter);
  background: rgba(251, 246, 238, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}

.c-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 20px; text-decoration: none; }
.c-brand img { width: 24px; height: 30px; object-fit: contain; }
.c-lab { padding: 2px 10px; border-radius: 99px; background: var(--bg-2); color: var(--ink-2); font-size: 12.5px; font-weight: 500; }
.c-nav { display: flex; gap: 26px; margin-inline-start: auto; }
.c-nav a { color: var(--ink-2); font-size: 15px; text-decoration: none; }
.c-nav a:hover { color: var(--ink); }

/* ---------- buttons ---------- */

.c-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.2s ease;
}

.c-btn:hover { transform: translateY(-2px); }
.c-btn:active { transform: translateY(0) scale(0.98); }
.c-btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(30, 27, 58, 0.6); }
.c-btn-ink:hover { background: #2b2754; }
.c-btn-line { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.c-btn-sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.c-btn-lg { min-height: 58px; padding: 0 34px; font-size: 17px; }
.c-link { font-weight: 600; }

/* ---------- the readable page (no JavaScript, reduced motion) ---------- */

.c-story { position: relative; }
.c-hero { position: relative; z-index: 2; padding: calc(var(--header-h) + clamp(48px, 9vw, 120px)) var(--gutter) 48px; }
.c-hero-in { max-width: 640px; }

.c-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.5rem, 4.2vw, 3.9rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.c-hero h1 em { display: block; }
.c-lede { margin: 0 0 30px; max-width: 36ch; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 19.5px); }
.c-cue { display: inline-block; margin-top: 30px; color: var(--ink-2); font-size: 15px; text-decoration: none; }
.c-cue span { display: inline-block; margin-inline-start: 6px; color: var(--coral); }

.c-ch { position: relative; z-index: 1; padding: 56px var(--gutter); }
.c-cap { max-width: 640px; }
.c-cap h2 { margin: 0 0 14px; font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.c-cap p { margin: 0; max-width: 46ch; color: var(--ink-2); font-size: 18px; }
.c-cap .c-ctas { margin-top: 26px; }

.c-close { position: relative; z-index: 2; padding: clamp(88px, 12vw, 160px) var(--gutter); text-align: center; background: var(--bg-2); }
.c-close h2 { margin: 0 auto 14px; max-width: 18ch; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; }
.c-close p { margin: 0 auto 30px; color: var(--ink-2); font-size: 19px; }
.c-close .c-ctas { justify-content: center; }
.c-foot { position: relative; z-index: 2; padding: 26px var(--gutter) 40px; background: var(--bg-2); color: var(--ink-2); font-size: 14px; }
.c-foot p { margin: 0; }

html.no-js .c-stage, html.still .c-stage { display: none; }
.c-agenda:empty { display: none; }

/* ---------- the stage: pinned for the whole story ---------- */

.c-stage {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  overflow: hidden;
}

html.motion .c-ch { padding: 0; }

/* the chapter texts move into the stage; until then they stay out of sight but readable for screen readers */
html.motion .c-ch .c-cap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.c-band {
  position: absolute;
  top: var(--header-h);
  inset-inline: var(--gutter);
  height: var(--band-h);
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-2);
  font-size: 14.5px;
  opacity: 0;
}

.c-band p { margin: 0; white-space: nowrap; }
.c-now span { color: var(--ink); font-weight: 600; }
.c-now time { margin-inline-start: 8px; padding: 2px 9px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.c-count { font-variant-numeric: tabular-nums; }
.c-count b { color: var(--ink); font-weight: 700; }

.c-ruler { position: relative; flex: 1; height: 6px; border-radius: 99px; background: var(--bg-2); }
.c-ruler-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: 99px; background: var(--brand); }
.c-ruler-knob { position: absolute; top: 50%; inset-inline-start: 0; width: 16px; height: 16px; margin-inline-start: -8px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--ink), 0 4px 10px rgba(30, 27, 58, 0.3); }
.c-ruler-dot { position: absolute; top: 50%; width: 8px; height: 8px; margin-inline-start: -4px; margin-top: -4px; border-radius: 50%; background: var(--cat); box-shadow: 0 0 0 2px var(--bg); }
.c-ruler-hour { position: absolute; top: 14px; transform: translateX(50%); color: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }

.c-canvas {
  position: absolute;
  top: calc(var(--header-h) + var(--band-h));
  left: 50%;
  width: 1360px;
  height: 820px;
  margin-top: var(--canvas-dy, 0px);
  display: grid;
  grid-template-columns: 380px 1fr 380px;
  gap: 0 24px;
  transform: translateX(-50%) scale(var(--k));
  transform-origin: top center;
}

.c-col { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.c-col-pm { grid-column: 1; grid-row: 1; }
.c-mid { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.c-col-am { grid-column: 3; grid-row: 1; }

.c-dial { width: 540px; height: 540px; flex: none; }
.c-dial svg { display: block; width: 100%; height: 100%; overflow: visible; }

.c-caps { position: relative; flex: 1; width: 100%; }
.c-legend { display: none; }

.c-caps .c-cap {
  position: absolute;
  inset: 8px 0 0;
  max-width: none;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.6s var(--ease-out);
  pointer-events: none;
}

.c-caps .c-cap.on, .c-caps .c-cap:focus-within { opacity: 1; transform: none; pointer-events: auto; }
.c-caps .c-cap h2 { font-size: 38px; margin-bottom: 12px; }
.c-caps .c-cap h2 em { display: inline; }
.c-caps .c-cap p { margin-inline: auto; max-width: 40ch; font-size: 18px; }
.c-caps .c-cap .c-ctas { justify-content: center; margin-top: 22px; }

/* the hero and the day's agenda sit on the stage's two side columns */
html.motion .c-hero { height: var(--hero-h, 96vh); padding: 0; }

html.motion .c-hero-in {
  position: absolute;
  top: calc(var(--header-h) + 48px);
  inset-inline-start: var(--canvas-left);
  width: calc(380px * var(--k) + 70px);
  max-width: none;
}

.c-agenda {
  position: absolute;
  top: calc(var(--header-h) + 64px);
  inset-inline-end: var(--canvas-left);
  width: calc(380px * var(--k));
}

.c-agenda-title { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.c-agenda ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.c-agenda li { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.7); font-weight: 500; font-size: max(13.5px, calc(17px * var(--k))); }
.c-agenda li time { min-width: 48px; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--cat-ink); }
.c-agenda li i { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--cat); }

/* ---------- category colours ---------- */

.c-cat-marketing, .c-cat-review { --cat: var(--coral); --cat-soft: #fff0eb; --cat-ink: #c2391b; }
.c-cat-communication { --cat: var(--green); --cat-soft: #e7f8ef; --cat-ink: #0b7a47; }
.c-cat-customers { --cat: var(--indigo); --cat-soft: #efedff; --cat-ink: #4433e0; }
.c-cat-automation { --cat: var(--violet); --cat-soft: #f4edff; --cat-ink: #7234d9; }
.c-cat-commerce { --cat: var(--amber); --cat-soft: #fff5e0; --cat-ink: #9a5b00; }
.c-cat-workforce { --cat: var(--sky); --cat-soft: #e8f4fe; --cat-ink: #1467b0; }
.c-cat-specialized { --cat: var(--pink); --cat-soft: #fdebf3; --cat-ink: #b81f60; }
.c-cat-platform { --cat: var(--teal); --cat-soft: #e3f7f5; --cat-ink: #0a7a70; }

/* ---------- moment cards ---------- */

.c-slot { position: relative; }

.c-card {
  position: relative;
  padding: 12px 16px 13px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.4;
  transform-origin: center;
}

html.motion .c-card { opacity: 0; will-change: transform, opacity; }

.c-card p { margin: 0; }
.c-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.c-card-head b { font-size: 14.5px; font-weight: 600; }
.c-card-head time { margin-inline-start: auto; padding: 2px 10px; border-radius: 99px; background: var(--cat-soft); color: var(--cat-ink); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }

.c-ico { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--cat); color: #fff; }
.c-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

/* steps: [data-at] shows from that step, [data-until] hides from that step; JS sets .is-out */
.c-card [data-at], .c-card [data-until] { transition: opacity 0.32s ease, transform 0.55s var(--spring); }
.c-card .is-out { opacity: 0; transform: translateY(8px) scale(0.94); pointer-events: none; }
.c-morph { display: grid; }
.c-morph > * { grid-area: 1 / 1; }

.c-act { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 16px; border-radius: 99px; font-weight: 600; font-size: 13.5px; transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.32s ease; }
.c-act-wa { background: var(--green-deep); color: #fff; }
.c-act-ink { background: var(--ink); color: #fff; }
.c-act-line { box-shadow: inset 0 0 0 1.5px var(--ink); }
.c-card .is-pressed { transform: scale(0.92); box-shadow: 0 0 0 6px rgba(91, 75, 255, 0.22); }

.c-tag { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 12px; font-size: 13.5px; }
.c-tag-wa { background: #e7f8ef; color: #0b5c36; }
.c-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--green); }

/* ad */
.c-ad { display: grid; gap: 5px; padding: 10px 12px 11px; border-radius: 12px; background: var(--bg); }
.c-ad-meta { display: flex; align-items: center; gap: 8px; }
.c-ad-meta small { color: var(--ink-2); font-size: 12px; }
.c-ad-logo { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--coral-deep); color: #fff; font-weight: 700; font-size: 13px; }
.c-ad-text { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.c-ad .c-morph { justify-items: start; align-items: center; min-height: 36px; margin-top: 2px; }

/* whatsapp */
.c-row { display: flex; gap: 11px; align-items: flex-start; }
.c-av { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--green-deep); color: #fff; font-weight: 700; font-size: 14px; }
.c-row-main { flex: 1; min-width: 0; }
.c-row-top { display: flex; align-items: center; gap: 6px; }
.c-row-top b { font-size: 15px; }
.c-row-text { color: var(--ink-2); }
.c-chip { padding: 1px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.c-chip-agent { background: #e7f8ef; color: #0b7a47; }
.c-badge { margin-inline-start: auto; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 99px; background: var(--green-deep); color: #fff; font-size: 12px; font-weight: 700; }
.c-card[data-card='whatsapp'] > .c-morph { margin-top: 8px; }
.c-toast { justify-self: center; align-self: start; padding: 8px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13px; }
.c-bub-out { position: relative; justify-self: end; max-width: 92%; padding: 7px 12px 18px; border-radius: 14px 4px 14px 14px; background: #d9fdd3; color: #10301f; font-size: 13.5px; }
.c-auto { display: block; margin-bottom: 2px; color: #0b7a47; font-size: 11.5px; font-weight: 600; }
.c-ticks { position: absolute; inset-inline-end: 10px; bottom: 4px; color: #8a8f96; font-size: 11px; letter-spacing: -2px; transition: color 0.3s ease; }
.c-ticks.read { color: #1d9bf0; }

/* customer */
.c-board { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 0 10px; padding: 8px 10px; border-radius: 12px; background: var(--bg); min-height: 84px; }
.c-board-col { margin: 0; color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.c-lead {
  position: absolute;
  top: 28px;
  inset-inline-start: 10px;
  width: calc(50% - 15px);
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 6px 14px -8px rgba(30, 27, 58, 0.35);
  transition: transform 0.7s var(--spring), background 0.3s ease;
}

.c-lead b { display: block; font-size: 14px; }
.c-lead small { color: var(--ink-2); font-size: 12px; transition: opacity 0.3s ease; }
.c-lead.is-moved { transform: translateX(calc(-100% - 10px)); background: #efedff; }
.c-card[data-card='customer'] > .c-morph { margin-top: 8px; }
.c-cal { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.c-cal-day { display: grid; place-items: center; width: 46px; height: 40px; flex: none; border-radius: 10px; background: var(--indigo); color: #fff; font-size: 12px; line-height: 1.1; }
.c-cal-day b { font-size: 14px; }
.c-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--ink-2); font-size: 13px; min-height: 40px; }
.c-rule span { padding: 2px 9px; border-radius: 99px; background: #efedff; color: #4433e0; font-weight: 600; font-size: 12px; }

/* prepare */
.c-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.c-node { display: grid; gap: 1px; padding: 7px 10px; border-radius: 10px; background: var(--bg); font-size: 12.5px; line-height: 1.3; }
.c-st-done { color: #0b7a47; font-weight: 600; }
.c-st-wait { color: var(--ink-2); }
.c-draft { padding: 9px 12px 10px; border-radius: 12px; outline: 1.5px dashed #c6b5f2; outline-offset: -1.5px; background: #faf7ff; transition: opacity 0.32s ease, transform 0.55s var(--spring), outline-color 0.3s ease, background 0.3s ease; }
.c-draft.is-sent { outline: 1.5px solid transparent; background: #f4edff; }
.c-draft-meta { margin-bottom: 3px !important; color: #7234d9; font-size: 12px; font-weight: 600; }
.c-draft-msg { font-size: 13.5px; }
.c-acts { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; min-height: 36px; }
.c-acts > .c-morph { justify-items: start; align-items: center; }
.c-acts > .c-pills { justify-items: end; }
.c-pill { padding: 1px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.c-pill-draft { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px #d8d0ea; }
.c-pill-ok { background: #ece6ff; color: #5a2fc2; }
.c-pill-sent { background: #e7f8ef; color: #0b7a47; }

/* payment */
.c-term { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--ink); color: #fff; }
.c-term-sum b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.c-term-sum small { color: rgba(255, 255, 255, 0.75); font-size: 12.5px; }
.c-term-end { justify-items: end; align-items: center; }
.c-paycard { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 9px; background: linear-gradient(135deg, #ffbf47, #ff8a3d); color: #3b1d00; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.32s ease; }
.c-paycard i { width: 18px; height: 13px; border-radius: 3px; background: rgba(59, 29, 0, 0.25); }
.c-term-ok { padding: 8px 12px; border-radius: 99px; background: var(--green-deep); color: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.c-receipt { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px !important; padding: 8px 12px; border-radius: 12px; background: #fff5e0; font-size: 13.5px; }
.c-receipt span { color: #0b7a47; font-weight: 600; }

/* team */
.c-shifts { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.c-shifts li { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 3px 6px 3px 12px; border-radius: 10px; background: var(--bg); }
.c-shifts li > span:first-of-type { color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.c-shifts li > :last-child { margin-inline-start: auto; }
.c-shifts .c-morph { justify-items: end; align-items: center; }
.c-shifts em { font-style: normal; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.c-on { color: #0b7a47; }
.c-later { color: var(--ink-2); }
.c-shift-me { background: #e8f4fe !important; }
.c-clock-in { min-height: 32px; padding: 0 12px; font-size: 12.5px; }

/* review */
.c-review-top { display: flex; align-items: center; gap: 6px; }
.c-review-top .c-rating { margin-inline-start: auto; }
.c-review-top small { color: var(--ink-2); font-size: 12px; }
.c-rating b { font-size: 16px; font-variant-numeric: tabular-nums; }
.c-rating-new { color: #0b7a47; }
.c-stars { color: #f5a400; letter-spacing: 1px; }
.c-review { padding: 7px 12px; border-radius: 12px; background: var(--bg); margin-bottom: 7px; }
.c-review p + p { color: var(--ink-2); margin-top: 2px; }
.c-draft-reply .c-draft-meta { color: #c2391b; }
.c-draft-reply { outline-color: #ffc3b3; background: #fff7f4; }
.c-draft-reply.is-sent { background: #fff0eb; }

/* industries */
.c-trades { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.c-trades li { display: grid; justify-items: start; gap: 1px; padding: 8px 10px; border-radius: 12px; background: var(--cat-soft); }
.c-trades .c-ico { width: 26px; height: 26px; margin-bottom: 3px; }
.c-trades small { color: var(--ink-2); font-size: 12px; }
.c-trades b { font-size: 13px; line-height: 1.25; }
.c-same { margin-top: 8px !important; font-weight: 600; color: var(--cat-ink); }
.c-ind-q { margin: 0 0 8px !important; font-weight: 600; }
.c-ind-chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.c-ind-chips li { padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.c-ind-chips li.is-on { border-color: var(--cat); background: var(--cat); color: #fff; font-weight: 700; }
.c-ind-chips .c-ind-other { border-style: dashed; color: var(--cat-ink); }
.c-ind-words { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px !important; font-size: 13px; }
.c-ind-words span { padding: 2px 8px; border-radius: 8px; background: var(--cat-soft); color: var(--cat-ink); }
.c-ind-ai { margin-top: 8px !important; font-size: 13px; }

/* ---------- the dial (SVG, built by js/test-home-motion-c-dial.js) ---------- */

.c-face { fill: var(--surface); }
.c-track { fill: none; stroke: var(--bg-2); stroke-width: 16; }
.c-arc { fill: none; stroke: var(--indigo); stroke-width: 16; stroke-linecap: round; }
.c-tick { stroke: #cfc5d8; stroke-width: 2; stroke-linecap: round; }
.c-tick.h { stroke: var(--ink); stroke-width: 3.5; }
.c-num { fill: var(--ink); stroke: var(--surface); stroke-width: 8px; stroke-linejoin: round; paint-order: stroke; font: 700 30px 'Rubik', system-ui, sans-serif; text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; }
.c-hand-h { fill: var(--ink); }
.c-hand-m { fill: var(--indigo); }
.c-cap-disc { fill: var(--surface); }
.c-pin { fill: var(--coral); }
.c-clock-pill { fill: var(--ink); }
.c-clock-text { fill: #fff; font: 700 24px 'Rubik', system-ui, sans-serif; text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; }
.c-mark .c-dot-m { fill: var(--cat); stroke: var(--surface); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; transition: transform 0.45s var(--spring); }
.c-mark .c-ring { fill: none; stroke: var(--cat); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.c-mark.on .c-dot-m { transform: scale(1.7); }
.c-mark.pulse .c-ring { animation: c-ring 0.7s var(--ease-out); }
.c-chip-dot { transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform 0.5s var(--spring); }
.c-chip-dot circle { fill: var(--cat); }
.c-chip-dot path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.c-chip.on .c-chip-dot { transform: scale(1); }
.c-orbit { transform-box: view-box; transform-origin: center; }
.c-done .c-orbit { animation: c-orbit 90s linear infinite; }

@keyframes c-ring {
  from { opacity: 0.9; transform: scale(1); }
  to { opacity: 0; transform: scale(3.4); }
}

@keyframes c-orbit { to { transform: rotate(360deg); } }

/* ---------- reduced motion: a still per chapter ---------- */

.c-still { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 26px; }
.c-still-dial { width: 168px; height: 168px; flex: none; }
.c-still-dial svg { width: 100%; height: 100%; overflow: visible; }
.c-still .c-card { width: min(380px, 100%); opacity: 1; }
html.still .c-ch { padding-block: 48px; }
html.still .c-hero { padding-bottom: 48px; }
html.still .c-ch:nth-of-type(odd) { background: rgba(243, 234, 219, 0.5); }

/* ---------- phones ---------- */

@media (max-width: 900px) {
  :root { --header-h: 58px; --band-h: 46px; }
  .c-nav { display: none; }
  .c-top { gap: 12px; }
  .c-top .c-btn-sm { margin-inline-start: auto; min-height: 40px; padding: 0 14px; font-size: 13.5px; }
  .c-lab { display: none; }

  .c-band { inset-inline: 16px; gap: 10px; font-size: 13px; flex-wrap: wrap; align-content: center; row-gap: 6px; }
  .c-now { flex: 1; }
  .c-ruler { order: 3; flex-basis: 100%; height: 4px; }
  .c-ruler-hour { display: none; }
  .c-ruler-knob { width: 12px; height: 12px; margin-inline-start: -6px; margin-top: -6px; box-shadow: 0 0 0 3px var(--ink); }

  .c-canvas {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    margin-top: 0;
    display: block;
    transform: none;
  }

  .c-mid { display: block; padding: 6px 16px 0; }
  .c-dial { width: var(--dial-w, 260px); height: var(--dial-w, 260px); margin: 0 auto; }
  .c-caps { height: 104px; }
  .c-caps .c-cap { inset: 4px 0 0; }
  .c-caps .c-cap h2 { font-size: 23px; margin-bottom: 6px; }
  .c-caps .c-cap p { font-size: 15px; line-height: 1.45; }
  .c-caps .c-cap .c-ctas { margin-top: 12px; }
  .c-caps .c-cap .c-btn-lg { min-height: 50px; font-size: 16px; }

  .c-col { position: absolute; inset-inline: max(16px, (100% - 560px) / 2); top: var(--deck-top, 460px); bottom: 12px; display: block; }
  .c-slot { position: absolute; inset: 0 0 auto; transition: transform 0.6s var(--spring), opacity 0.4s ease; transform-origin: top center; }
  .c-slot.is-behind .c-card { height: var(--front-h, auto); overflow: hidden; }
  .c-slot.is-behind .c-card > * { opacity: 0; transition: opacity 0.25s ease; }
  .c-col { transition: transform 0.6s var(--ease-out), opacity 0.4s ease; }
  .c-stage.is-finale .c-col { transform: translateY(48px); opacity: 0; pointer-events: none; }
  .c-legend {
    position: absolute;
    inset-inline: max(16px, (100% - 560px) / 2);
    top: calc(var(--deck-top, 460px) + 64px);
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease 0.15s, transform 0.7s var(--ease-out) 0.15s;
  }
  .c-legend li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--cat-soft); font-size: 14px; font-weight: 500; }
  .c-legend i { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--cat); }
  .c-legend b { margin-inline-start: auto; color: var(--cat-ink); font-variant-numeric: tabular-nums; }
  .c-stage.is-finale .c-legend { opacity: 1; transform: none; }

  html.hero-early .c-hero { height: var(--hero-h, 96vh); padding: 0; }
  html.hero-early .c-hero-in { position: absolute; }
  html:is(.motion, .hero-early) .c-hero-in { top: calc(var(--header-h) + var(--band-h) + var(--dial-w, 260px) + 20px); inset-inline: 16px; width: auto; }
  html:is(.motion, .hero-early) .c-hero h1 { font-size: 34px; margin-bottom: 14px; }
  html:is(.motion, .hero-early) .c-lede { font-size: 16px; margin-bottom: 20px; }
  html:is(.motion, .hero-early) .c-cue { margin-top: 16px; }
  .c-agenda { display: none; }

  .c-ch { padding: 44px 16px; }
  .c-hero { padding-inline: 16px; }
}

@media (max-width: 900px) and (max-height: 700px) {
  .c-caps .c-cap p { display: none; }
  .c-caps { height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .c-btn, .c-act { transition: none; }
  .c-btn:hover { transform: none; }
  .c-done .c-orbit { animation: none; }
}
