/* CrewMesh marketing site. Plain CSS, no build step. Round 6: the hero carries the example chat on a phone beside her badge and a four-step tracker; the chat names each step.
   Round 7 (25 Nov call): WhatsApp buttons are WhatsApp green and sit in the nav and on the contact form only; the page is one centred frame on very wide screens;
   the phone hero shows less; pricing has its own page (pricing/). The bottom right corner is kept clear for the chat widget. */

:root {
  --bg: #ffffff;
  --ink: #1b1a19;
  --soft: #5f5d59;
  --line: #e6e4df;
  --paper: #fdfbf7;

  /* Four tile colours plus the violet action. */
  --lav: #c3b9ff;
  --mint: #9be7c8;
  --sky: #a5d1ff;
  --yellow: #ffe08a;

  --accent: #5a46f0;
  --accent-deep: #4332c9;
  --accent-soft: #eceafd;
  --accent-ink: #2b2670;
  --human: #b3392d;
  --human-soft: #f3f1ed;
  --human-ink: #1b1a19;
  --ok: #1f9d63;
  --wa: #25d366;        /* WhatsApp's own green, for WhatsApp buttons only */

  --font-d: "Gabarito", ui-sans-serif, system-ui, sans-serif;
  --font-t: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-m: "Geist Mono", ui-monospace, monospace;

  --rail: 208px;
  --max: 1160px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --sec: clamp(44px, 4.6vw, 66px);
  --hair: rgb(27 26 25 / .18);
  --focus: var(--accent);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-card: 0 1px 2px rgb(27 26 25 / .08), 0 24px 44px -26px rgb(27 26 25 / .45);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--ink) #efede8; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16.5px/1.5 var(--font-t);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 2px; }
b, strong { font-weight: 600; }
::selection { background: var(--ink); color: var(--yellow); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[id] { scroll-margin-top: 72px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 60; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-s { display: inline-block; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; margin-left: 4px; color: var(--soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border: 0; border-radius: 14px;
  font: 700 16px/1 var(--font-d); letter-spacing: .005em; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
/* Violet is the action colour. WhatsApp green is for the two buttons that open WhatsApp: the one in the nav
   (side bar on wide screens, top bar on narrow ones) and the one that sends the contact form. No others. */
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
/* As WhatsApp draws it: its green (#25D366) with the logo and the words in white. */
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1fbf5b; }
.btn-wa .ic { fill: currentColor; stroke: none; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Type ---------- */
.h2 {
  font: 800 clamp(27px, 2.7vw, 38px)/1.08 var(--font-d);
  letter-spacing: -.025em; text-wrap: balance; max-width: 16em;
}
.sec-lede { font-size: clamp(16.5px, 1.2vw, 18px); line-height: 1.5; max-width: 32em; text-wrap: pretty; color: var(--soft); }
.sec-lede strong { color: var(--ink); font-weight: 700; }
.sec-lede + .sec-lede { margin-top: 14px; }
.sec { padding-block: var(--sec); }
.split { display: grid; gap: 10px; }
.source { margin-top: 14px; font-size: 13.5px; line-height: 1.45; color: var(--soft); max-width: 60em; }

/* Colour fields: text on colour is always ink */
.field-sky { background: var(--sky); }
.field-lav { background: var(--lav); }
.field-mint { background: var(--mint); }
.field-yellow { background: var(--yellow); }
:is(.field-sky, .field-lav, .field-mint, .field-yellow) :is(.sec-lede, .source) { color: var(--ink); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 var(--font-d); letter-spacing: -.01em; text-decoration: none; color: var(--ink); min-height: 44px; }
.logo svg { width: 30px; height: 30px; }
.logo-inv { color: var(--paper); }
.logo-inv svg { border-radius: 8px; box-shadow: 0 0 0 1.5px #4a4946; }

/* ---------- Journey bar (wide screens) ---------- */
.rail {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; width: var(--rail);
  display: flex; flex-direction: column; gap: 28px; padding: 22px 20px 22px 24px;
  background: var(--bg); border-right: 1px solid var(--line); overflow-y: auto;
}
.rail-links { display: grid; gap: 2px; }
.rail-links a {
  display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 6px 0 2px; border-radius: 10px;
  font: 500 14.5px/1.2 var(--font-t); color: var(--soft); text-decoration: none; white-space: nowrap;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.rail-links a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; flex: none; transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
.rail-links a:hover { color: var(--ink); background: #f4f2ee; }
.rail-links a.on { color: var(--ink); font-weight: 600; }
.rail-links a.on::before { background: var(--accent); box-shadow: none; }
.rail-cta { margin-top: auto; flex: none; min-height: 48px; padding: 0 12px; font-size: 15.5px; white-space: nowrap; }

/* ---------- Top bar (narrow screens) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; display: none; align-items: center; gap: 10px;
  padding: 8px var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line);
}
.topbar .logo { margin-right: auto; }
.head-cta { min-height: 44px; padding: 0 14px; font-size: 15px; white-space: nowrap; flex: none; }
.menu { position: relative; }
.menu summary {
  list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 14px; box-shadow: inset 0 0 0 2px var(--ink); font: 700 15px/1 var(--font-d); cursor: pointer; user-select: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: #fff; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 232px;
  background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 2px 6px rgb(27 26 25 / .1), 0 24px 48px -20px rgb(27 26 25 / .4);
}
.menu-panel a { display: block; padding: 12px 14px; border-radius: 10px; font-weight: 500; text-decoration: none; min-height: 44px; }
.menu-panel a:hover { background: #f4f2ee; }
.menu-panel a[aria-current] { font-weight: 600; }

/* ---------- 1. Hero: words and buttons beside the example chat on a phone, then the four steps ---------- */
.hero { display: block; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 3.5vw, 56px); align-items: center;
  width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
  /* No space above: the yellow box meets the top of the page, and her lanyard hangs from that edge. */
  padding: 0 var(--gutter) clamp(18px, 3.2vh, 40px);
}
.hero-text { container-type: inline-size; min-width: 0; }
h1 {
  /* Sized from its own column, so it fills the space beside the phone. */
  font: 800 clamp(38px, 12.4cqi, 76px)/1.02 var(--font-d);
  letter-spacing: -.04em; text-wrap: balance;
}
.hl {
  background: var(--yellow); border-radius: 14px; padding: 0 .1em; margin-inline: -.02em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-lede { margin-top: 24px; max-width: 30em; font-size: clamp(16.5px, 1.25vw, 18.5px); color: var(--soft); text-wrap: pretty; }
.hero-lede strong { color: var(--ink); }
/* The roles still to come get one quiet line here; section 10 shows them. */
.hero-crew { margin-top: 22px; font-size: 14.5px; color: var(--soft); }
/* Lines that invite a visitor to chat. Hidden until script.js sees the chat widget on the page, so they never
   point at a chat that is not there. The link is a button because it opens the chat and goes nowhere. */
.chat-nudge { display: none; }
.has-chat .chat-nudge { display: block; }
.chat-link { font: inherit; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 2px; }
.chat-link:hover { color: var(--accent); }
.faq-more { margin-top: 22px; color: var(--soft); max-width: 42em; font-size: 15.5px; text-wrap: pretty; }

/* The yellow box tells the whole story with few words: her badge, a four-step tracker of one or two words each
   under it, and the phone. The chat itself names each step as it starts (the coloured markers). */
.hero-demo {
  --pad: clamp(18px, 2.2vw, 28px);
  position: relative; min-width: 0; background: var(--yellow); padding: var(--pad); container-type: inline-size;
  display: grid; grid-template-columns: auto minmax(0, 310px); column-gap: 12px; align-items: start; justify-content: space-evenly;
}
.hero-side { display: grid; justify-items: center; gap: clamp(12px, 2vh, 20px); min-width: 0; }
.hero-badge { margin-top: calc(-1 * var(--pad)); }
.hero-badge .lanyard { --bw: clamp(104px, 9vw, 132px); --strap: clamp(18px, 2.4vw, 34px); }
.hero-badge .brole { font-size: calc(var(--bw) * .05); letter-spacing: .1em; }
.hero-badge .brow { font-size: calc(var(--bw) * .046); letter-spacing: .08em; }
.hero-badge .bfoot { font-size: calc(var(--bw) * .044); letter-spacing: .1em; }
.hero-demo .phone { width: min(310px, 100%); border-radius: 38px; padding: 9px; }
.hero-demo .phone-screen { border-radius: 30px; }
.hero-demo .chat { height: clamp(250px, calc(100svh - 350px), 420px); }
/* The markers in the chat name the step, so the caption that mirrors it on small screens is not needed here. */
.hero-demo .now { display: none; }
/* "Play again" sits under the phone and keeps its place while hidden, so the box never changes height. */
.hero-demo .replay { position: static; }
.hero-demo .replay[hidden] { display: inline-flex; visibility: hidden; }

/* The tracker: four numbered steps joined by a line, sized from the yellow box so it fills the room under her
   badge. The step the chat is on is picked out in white. */
.hero-demo .notes {
  --n: clamp(26px, 6.2cqi, 36px); --gap: clamp(8px, 3cqi, 20px);
  position: relative; gap: var(--gap); justify-self: stretch;
}
.hero-demo .note { position: relative; grid-template-columns: var(--n) auto; justify-content: start; column-gap: clamp(9px, 2cqi, 14px); align-items: start; padding: 7px 14px 8px 7px; border-radius: 18px; background: none; }
.hero-demo .note:not(:last-child)::after { content: ""; position: absolute; left: calc(7px + var(--n) / 2 - 1px); top: calc(10px + var(--n)); bottom: calc(-4px - var(--gap)); width: 2px; background: rgb(27 26 25 / .22); }
.hero-demo .note .step-n { grid-row: auto; width: var(--n); height: var(--n); font-size: calc(var(--n) * .5); }
.hero-demo .note h3 { padding-top: calc(var(--n) * .12); max-width: 8.4em; font: 800 clamp(15px, 3.4cqi, 20px)/1.15 var(--font-d); letter-spacing: -.01em; }
.hero-demo .note h3 small { display: block; margin-top: 2px; font: 500 clamp(12.5px, 2.75cqi, 15px)/1.3 var(--font-t); letter-spacing: 0; }
.hero-demo .notes.live .note { opacity: 1; }
.hero-demo .notes.live .note:not(.on):not(.done) h3 { opacity: .5; }
.hero-demo .notes.live .note:not(.on):not(.done) .step-n { background: #8d8468; }
.hero-demo .notes.live .note.on { background: #fff; transform: none; }
.hero-demo .notes.live .note.on .step-n { background: var(--accent); }

/* Each step has one colour: the marker in the chat where the step starts. */
.m-step { align-self: center; max-width: none; gap: 7px; align-items: center; padding: 5px 11px 5px 5px; border-radius: 99px; font: 700 12px/1.2 var(--font-d); color: var(--ink); }
.m-step b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 11.5px; flex: none; }
.m-step[data-step="1"] { background: var(--yellow); }
.m-step[data-step="2"] { background: var(--lav); }
.m-step[data-step="3"] { background: var(--mint); }
.m-step[data-step="4"] { background: var(--sky); }


/* ---------- Customers (sits just above Pricing) ---------- */
.trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 16px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust-l { font: 600 13px/1 var(--font-t); color: var(--soft); white-space: nowrap; }
.trust-logos { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.trust-logos img { width: auto; max-width: 100%; }
.trust-name { font: 700 17px/1.2 var(--font-d); letter-spacing: -.005em; white-space: nowrap; }

/* ---------- Staff ID badge (modelled on the app's hire flow) ---------- */
.lanyard { --bw: 240px; --strap: 88px; display: inline-flex; flex-direction: column; align-items: center; transform-origin: 50% 0; transform: rotate(var(--tilt, 0deg)); }
.swing-on .lanyard .badge { cursor: grab; touch-action: pan-y; }
.swing-on .lanyard.grabbing .badge { cursor: grabbing; }
.swing-on .sway { animation: none; }
.strap {
  width: calc(var(--bw) * .1); height: var(--strap); border-radius: 0 0 3px 3px;
  background: #1b1a19 repeating-linear-gradient(0deg, transparent 0 5px, rgb(255 255 255 / .09) 5px 6px);
}
.clip { width: calc(var(--bw) * .055); height: calc(var(--bw) * .11); border: 3px solid #b4b3af; border-radius: 99px; margin-top: -5px; margin-bottom: calc(var(--bw) * -.05); position: relative; z-index: 2; }
.badge {
  width: var(--bw); background: #ececea; border-radius: calc(var(--bw) * .085); padding: calc(var(--bw) * .035);
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgb(27 26 25 / .14), 0 34px 54px -30px rgb(27 26 25 / .6);
}
.badge-in { background: #121211; color: var(--paper); border-radius: calc(var(--bw) * .06); padding: calc(var(--bw) * .05) calc(var(--bw) * .06) calc(var(--bw) * .065); }
.slot { width: 17%; height: calc(var(--bw) * .03); background: #000; border-radius: 99px; margin: 0 auto calc(var(--bw) * .05); box-shadow: inset 0 -1px 1px rgb(255 255 255 / .18); }
.photo { border-radius: calc(var(--bw) * .04); overflow: hidden; aspect-ratio: 1 / .92; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.bname { font: 800 calc(var(--bw) * .09)/1 var(--font-d); text-align: center; margin-top: calc(var(--bw) * .065); letter-spacing: -.01em; }
.brole { font: 600 max(6px, calc(var(--bw) * .036))/1 var(--font-m); letter-spacing: .16em; white-space: nowrap; text-transform: uppercase; text-align: center; color: #c4c3be; margin-top: calc(var(--bw) * .04); }
.brows { border-top: 1px dashed #4d4c49; margin-top: calc(var(--bw) * .06); padding-top: calc(var(--bw) * .05); display: grid; gap: calc(var(--bw) * .04); }
.brow { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 500 max(6px, calc(var(--bw) * .034))/1 var(--font-m); letter-spacing: .12em; white-space: nowrap; text-transform: uppercase; color: #a3a29a; }
.brow b { color: var(--paper); font-weight: 600; display: inline-flex; gap: 4px; }
.brow b i { font-style: normal; border: 1px solid #62615d; border-radius: 4px; padding: 3px 5px; }
.bfoot { text-align: center; font: 500 max(6px, calc(var(--bw) * .032))/1 var(--font-m); letter-spacing: .14em; text-transform: uppercase; color: #a3a29a; margin-top: calc(var(--bw) * .055); }
.badge.soon .badge-in { background: #6a6965; }
.badge.soon .brole { color: #f0efeb; }
.badge.blank .badge-in { background: #3a3936; }
.photo-empty { display: grid; place-items: end center; background: #4a4946; }
.photo-empty svg { width: 72%; height: auto; }
.ph { display: block; height: calc(var(--bw) * .05); margin: calc(var(--bw) * .06) auto 0; background: #5d5c58; border-radius: 4px; }
.ph-a { width: 58%; }
.ph-b { width: 38%; margin-top: calc(var(--bw) * .04); }

@media (prefers-reduced-motion: no-preference) {
  .sway { animation: sway .85s var(--ease) .2s both; }
}
@keyframes sway {
  0% { transform: rotate(-11deg); }
  38% { transform: rotate(2.5deg); }
  70% { transform: rotate(-4.5deg); }
  100% { transform: rotate(var(--tilt, 0deg)); }
}

/* ---------- 2. Results: the hour chart beside her report ---------- */
.h2 strong { font-weight: 800; color: var(--accent); }
.results { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 4vw, 64px); align-items: stretch; margin-top: clamp(28px, 4vw, 48px); }
.results .chart-fig { order: 2; }
.results .report-card { order: 1; }
.report-card { background: var(--yellow); color: var(--ink); padding: clamp(22px, 2.6vw, 34px); }
.rc-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid rgb(27 26 25 / .2); }
.rc-head img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); flex: none; }
.rc-head p { font-size: 13.5px; line-height: 1.35; }
.rc-head b { display: block; font: 800 19px/1.2 var(--font-d); }
.rc-list { margin-top: 6px; font: 500 clamp(18px, 1.6vw, 23px)/1.25 var(--font-d); letter-spacing: -.005em; }
.rc-list li { padding: 12px 0; border-bottom: 1px solid rgb(27 26 25 / .2); text-wrap: pretty; }
.rc-list strong { font-weight: 800; font-size: 1.12em; }
.minis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(20px, 3vw, 40px); margin-top: 22px; }
.mini-h { font: 700 14px/1.25 var(--font-d); }
.mini-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; margin-top: 12px; padding-bottom: 10px; border-bottom: 1px solid rgb(27 26 25 / .2); }
.mini-bars span { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.mini-bars b { font: 800 14px/1 var(--font-d); font-variant-numeric: tabular-nums; margin-bottom: 5px; }
.mini-bars i { display: block; width: 100%; height: calc(var(--v) / 129 * 84px); min-height: 4px; background: var(--ink); border-radius: 3px 3px 0 0; }
.mini-bars small { margin-top: 6px; font: 600 11.5px/1 var(--font-t); white-space: nowrap; }
.vs { display: grid; gap: 14px; margin-top: 14px; }
.vs p { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; font: 600 12.5px/1 var(--font-t); }
.vs i { display: block; height: 22px; width: calc(var(--v) / 33 * 100%); min-width: 6px; background: var(--ink); border-radius: 0 4px 4px 0; }
.vs b { font: 800 14px/1 var(--font-d); font-variant-numeric: tabular-nums; }
.vs p:first-child i { background: var(--accent); }
.fine { margin-top: 18px; font-size: 13.5px; line-height: 1.45; }
.fine summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1.5px; min-height: 32px; }
.fine summary::-webkit-details-marker { display: none; }
.fine p { margin-top: 8px; color: var(--ink); max-width: 60em; }
.tag { display: inline-flex; align-items: center; font: 700 12px/1 var(--font-d); letter-spacing: .04em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; background: var(--ink); color: #fff; vertical-align: middle; }

/* The chart runs top to bottom, one row per hour, so it sits level with the report card. */
.chart-fig { display: flex; flex-direction: column; justify-content: center; padding-top: 6px; }
.chart-h { font: 800 clamp(18px, 1.5vw, 22px)/1.15 var(--font-d); letter-spacing: -.015em; text-wrap: balance; margin-bottom: 14px; }
.chart {
  position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); grid-auto-rows: 17px; column-gap: 12px; row-gap: 4px;
  align-items: center;
}
.chart::before { content: ""; position: absolute; left: 58px; top: 0; bottom: 0; border-left: 2px solid var(--ink); }
.hr { grid-column: 1; align-self: center; text-align: right; padding-right: 14px; font: 600 12px/1 var(--font-t); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--soft); }
.hr.on { font-weight: 800; color: var(--ink); }
.bar { grid-column: 2; display: block; position: relative; height: 100%; max-height: 18px; width: calc(var(--v) * 80% / 94); background: var(--ink); border-radius: 0 3px 3px 0; }
.bar.day { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.bar.peak b { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 8px; font: 800 14px/1 var(--font-d); white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font: 500 13.5px/1.3 var(--font-t); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 18px; height: 11px; border-radius: 2px; background: var(--ink); flex: none; }
.sw-day { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.chart-fig .source { margin-top: 10px; }

/* ---------- 4. Channels: a web around Cassie ---------- */
.flow {
  position: relative; margin-top: clamp(24px, 3.4vw, 40px);
  --lane: clamp(36px, 8vw, 120px);
  display: grid; grid-template-columns: minmax(0, 1fr) var(--lane) auto var(--lane) minmax(0, 1fr); grid-template-rows: auto auto;
  grid-template-areas: "kin . . . kout" "in ll hub lr out"; row-gap: 14px; align-items: center;
}
.flow-k { font: 800 clamp(16px, 1.4vw, 19px)/1.2 var(--font-d); letter-spacing: -.01em; }
.flow-k-in { grid-area: kin; }
.flow-k-out { grid-area: kout; }
/* The lines fill the lane between a column of cards and her badge: each leaves the middle of a card and tucks in behind her. */
.flow-lines { align-self: stretch; justify-self: stretch; width: 100%; height: 100%; overflow: visible; }
.flow-l { grid-area: ll; }
.flow-r { grid-area: lr; }
.flow-lines path { vector-effect: non-scaling-stroke; fill: none; }
.flow-lines .base path { stroke: var(--ink); stroke-width: 2; }
.flow-lines .base path.ready { stroke: #8f8c85; stroke-dasharray: 7 7; }
/* A dot travels each live line: towards her on the left, away from her on the right. */
.flow-lines .pulse path { stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0.1 90; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .flow-lines .pulse path { opacity: 1; animation: flow-dot 2.6s linear infinite; }
  .flow-lines .pulse path:nth-child(2) { animation-delay: -.9s; }
  .flow-lines .pulse path:nth-child(3) { animation-delay: -1.7s; }
  .flow-lines .pulse path:nth-child(4) { animation-delay: -.4s; }
  .flow-lines .pulse path:nth-child(5) { animation-delay: -1.3s; }
  .flow-lines .pulse path:nth-child(6) { animation-delay: -2.1s; }
  .flow-lines .pulse path:nth-child(7) { animation-delay: -.7s; }
}
@keyframes flow-dot { from { stroke-dashoffset: 90; } to { stroke-dashoffset: 0; } }
/* Rows are exact equal shares of the height (the space between cards is the cards' own margin), so the lines above can aim at their middles. */
.flow-list { position: relative; z-index: 1; align-self: stretch; display: grid; grid-auto-rows: 1fr; align-items: center; }
.flow-list .chan { margin-block: 5px; }
.flow-in { grid-area: in; }
.flow-out { grid-area: out; }
.flow-hub { grid-area: hub; position: relative; z-index: 2; align-self: center; }
.flow .chan-out { background: var(--sky); }
.chan { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--mint); font: 700 16px/1.2 var(--font-d); box-shadow: 0 1px 2px rgb(27 26 25 / .06), 0 14px 24px -18px rgb(27 26 25 / .5); }
.chan .ic { width: 26px; height: 26px; }
.chan span { display: block; min-width: 0; }
.chan small { display: block; margin-top: 3px; font: 500 12.5px/1.3 var(--font-t); color: var(--ink); text-wrap: pretty; }
.chan-ready { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.chan-ready small { color: var(--soft); }

/* ---------- 5. How she works: the chat plays with the steps beside it ---------- */
.play { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--lav); padding: clamp(20px, 3vw, 44px); }
.phone-wrap { position: relative; display: grid; justify-items: center; gap: 14px; min-width: 0; }
.eg-pill, .eg-tag { display: inline-flex; align-items: center; font: 600 12.5px/1 var(--font-t); padding: 7px 12px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.phone { width: min(360px, 100%); background: var(--ink); border-radius: 44px; padding: 11px; box-shadow: 0 40px 64px -40px rgb(27 26 25 / .7); }
.phone-screen { position: relative; background: #fff; border-radius: 34px; overflow: hidden; }
.phone-top { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.phone-top img { width: 40px; height: 40px; border-radius: 50%; }
.phone-top p { font-size: 13px; color: var(--soft); line-height: 1.3; }
.phone-top b { display: flex; align-items: center; gap: 6px; font: 800 16px/1.2 var(--font-d); color: var(--ink); }
.who-tag { display: inline-flex; align-items: center; font: 700 11px/1 var(--font-t); letter-spacing: .04em; text-transform: uppercase; padding: 3px 6px; border-radius: 5px; font-style: normal; }
.who-ai { background: var(--accent); color: #fff; }
.who-h { background: var(--human); color: #fff; }
.chat { position: relative; padding: 16px 14px 20px; display: flex; flex-direction: column; gap: 10px; height: min(560px, 68vh); overflow-y: auto; overscroll-behavior: contain; font-size: 14.5px; line-height: 1.42; scrollbar-width: thin; }
.m { display: flex; align-items: flex-end; gap: 8px; max-width: 90%; }
.m-text { padding: 10px 13px; border-radius: 14px; min-width: 0; }
.m-cust { align-self: flex-end; }
.m-cust .m-text { background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.m-ai .m-text { background: var(--accent-soft); color: var(--accent-ink); border-bottom-left-radius: 4px; }
.m-human .m-text { background: var(--human-soft); color: var(--human-ink); border-bottom-left-radius: 4px; }
.m-av { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.m-av-h { display: grid; place-items: center; background: var(--human-soft); color: var(--human); box-shadow: inset 0 0 0 1.5px var(--human); font: 700 12px/1 var(--font-t); }
.m-who { display: flex; align-items: center; gap: 6px; font: 700 12px/1.2 var(--font-t); margin-bottom: 4px; }
.m-ai .m-who { color: var(--accent); }
.m-human .m-who { color: var(--human); }
.m-event { align-self: stretch; max-width: none; justify-content: center; font-size: 12.5px; color: var(--soft); padding: 4px 0; gap: 10px; }
.m-event::before, .m-event::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* What she sends in the example chat: the class she looked up, and the booking link. */
.run-card { display: grid; gap: 3px; margin-top: 8px; padding: 9px 11px; border-radius: 10px; background: #fff; color: var(--ink); font-size: 13px; line-height: 1.35; }
.run-card b { font: 700 13.5px/1.25 var(--font-d); }
.run-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.run-tags i { font: 600 11.5px/1 var(--font-t); font-style: normal; padding: 4px 7px; border-radius: 99px; background: var(--mint); }
.run-tags i + i { background: var(--sky); }
.book-btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; padding: 9px 12px; border-radius: 10px; background: var(--accent); color: #fff; font: 700 13px/1 var(--font-d); }
.book-btn .ic { width: 15px; height: 15px; }

.m-record { align-self: stretch; max-width: none; padding: 2px 0; }
.record { display: grid; gap: 6px; width: 100%; background: var(--yellow); border-radius: 12px; padding: 11px 13px; font-size: 13px; }
.record-h { font: 700 13px/1.2 var(--font-d); padding-bottom: 6px; border-bottom: 1px solid rgb(27 26 25 / .2); }
.record > span:not(.record-h) { display: flex; justify-content: space-between; gap: 12px; }
.record > span > span { color: var(--soft); }
.chat.will-play .m { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.chat.will-play .m.in { opacity: 1; transform: none; }
.replay { position: absolute; right: 0; bottom: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: #fff; color: var(--ink); font: 700 13.5px/1 var(--font-d); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--ink); }
.replay .ic { width: 16px; height: 16px; }
.replay:hover { background: var(--ink); color: #fff; }

/* The "now" caption: shown only on narrow screens, inside the phone, while the chat plays. */
.now { display: none; }

.notes { display: grid; gap: 10px; }
.note { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 14px 16px; border-radius: 16px; background: rgb(255 255 255 / .55); transition: background-color .35s var(--ease), opacity .35s var(--ease), transform .35s var(--ease); }
.note .step-n { grid-row: 1 / span 2; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 800 17px/1 var(--font-d); transition: background-color .35s var(--ease); }
.note h3 { font: 800 clamp(19px, 1.5vw, 22px)/1.1 var(--font-d); letter-spacing: -.015em; padding-top: 7px; }
.note p { margin-top: 6px; font-size: 15px; color: var(--ink); max-width: 26em; text-wrap: pretty; }
.notes.live .note { opacity: .42; }
.notes.live .note.done { opacity: .75; }
.notes.live .note.on { opacity: 1; background: #fff; transform: translateX(6px); }
.notes.live .note.on .step-n { background: var(--accent); }
.try { margin-top: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.try .sec-lede { margin: 0; }

/* ---------- 6. How you manage her ---------- */
.feat-h { margin-bottom: clamp(20px, 2.6vw, 32px); max-width: 16em; }
.group-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.group-grid.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.group-grid.flip .g-text { order: 2; }
.feats { border-top: 1px solid var(--line); }
.feats > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.feats dt { font: 700 18px/1.2 var(--font-d); }
.feats dd { margin-top: 5px; max-width: 34em; text-wrap: pretty; color: var(--soft); font-size: 15.5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.dot-ai { background: var(--accent); }
.dot-human { background: var(--human); }

.scene { position: relative; padding: clamp(24px, 3vw, 44px); background: var(--mint); }
.card { background: #fff; color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-card); }
.card-h { font: 800 15px/1.2 var(--font-d); }
.eg-tag { position: absolute; top: 14px; right: 16px; z-index: 3; }

/* Dashboard scene */
.scene-see { padding-bottom: calc(clamp(24px, 3vw, 44px) + 64px); }
.dash { overflow: hidden; }
.ib-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ib-head b { display: block; font-weight: 600; font-size: 14.5px; }
.ib-head small { display: block; color: var(--soft); font-size: 12.5px; }
.handling { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-size: 13px; font-weight: 600; color: var(--accent); }
.take { font: 600 13.5px/1 var(--font-t); padding: 9px 13px; border-radius: 10px; background: #fff; color: var(--human); box-shadow: inset 0 0 0 1.5px var(--human); flex: none; }
.dash-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.rows { border-right: 1px solid var(--line); }
.row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.35; }
.row:last-child { border-bottom: 0; }
.row.sel { background: #f4f2ee; }
.row p { flex: 1; color: var(--soft); min-width: 0; }
.row p b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.row .dot { margin-top: 6px; }
.av { width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); display: grid; place-items: center; font: 700 12.5px/1 var(--font-t); flex: none; background: #fff; color: var(--ink); }
.side { padding: 14px 16px; font-size: 13.5px; display: grid; align-content: start; gap: 10px; }
.side p:not(.card-h) { line-height: 1.35; }
.side span { display: block; font-size: 12px; color: var(--soft); margin-bottom: 2px; }
.report { box-shadow: 0 1px 2px rgb(27 26 25 / .08), 0 10px 18px -12px rgb(27 26 25 / .35); position: absolute; left: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); width: 62%; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.report img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.report p { font-size: 14px; line-height: 1.4; }
.report b { display: block; font: 800 15px/1.2 var(--font-d); margin-bottom: 3px; }

/* ---------- 7. Set-up: "Send us your website". The address is typed, her pages are read, and the badge comes alive. ---------- */
.build { position: relative; margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: center; background: var(--sky); padding: clamp(20px, 3vw, 40px); }
.b-site { background: #fff; border-radius: 18px; padding: 16px 18px 18px; box-shadow: var(--shadow-card); max-width: 420px; justify-self: end; width: 100%; }
.b-url { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 2px solid #d6d3cc; font: 500 16px/1 var(--font-t); overflow: hidden; }
.b-url .ic { color: var(--soft); width: 18px; height: 18px; }
.b-typed { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { width: 2px; height: 20px; background: var(--ink); margin-left: -6px; flex: none; }
.build.anim .caret { animation: caret 1s steps(2, start) infinite; }
.build.anim.typed .caret { display: none; }
@keyframes caret { to { visibility: hidden; } }
.b-pages { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.b-pages li { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; background: #f4f2ee; font: 600 13.5px/1.2 var(--font-t); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.b-pages li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px var(--ink); background: no-repeat center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }
.b-pages li.read::before { background-color: var(--ok); box-shadow: none; }
.b-status { margin-top: 12px; font: 600 13.5px/1.2 var(--font-t); color: var(--soft); min-height: 1.2em; }
.b-status span { display: none; }
.build.reading .b-s1 { display: inline; }
.build.read .b-s2 { display: inline; color: var(--ok); }
.b-arrow { width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; justify-self: center; }
.b-crew { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 28px); }
.b-crew .badge { flex: none; transform: rotate(var(--tilt)); transition: transform .6s var(--ease); }
.b-crew .badge-in { transition: background-color .6s var(--ease); }
.b-crew .photo-empty { position: relative; }
.b-crew .photo-empty img { position: absolute; inset: 0; transition: opacity .6s var(--ease); }
.b-crew .bname, .b-crew .brole { transition: opacity .5s var(--ease); }
.b-crew .ph { transition: opacity .3s var(--ease); }
.b-chat { display: grid; gap: 8px; max-width: 280px; font-size: 14px; line-height: 1.4; }
.bub { padding: 9px 12px; border-radius: 12px; max-width: 92%; }
.bub-ai { background: var(--accent-soft); color: var(--accent-ink); justify-self: start; }
.b-chat .bub { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.b-chat .bub-cust { background: var(--ink); color: #fff; justify-self: end; }
/* Staged states while the animation runs; without it everything shows at once. */
.build.anim .b-pages li, .build.anim .b-chat .bub { opacity: 0; transform: translateY(8px); }
.build.anim .b-pages li.in, .build.anim .b-chat .bub.in { opacity: 1; transform: none; }
.build.anim:not(.alive) .badge-in { background: #3a3936; }
.build.anim:not(.alive) .photo-empty img, .build.anim:not(.alive) .bname, .build.anim:not(.alive) .brole { opacity: 0; }
.build.anim.alive .ph { opacity: 0; }
.build.anim.alive .badge { transform: rotate(0deg); }
.build:not(.anim) .ph { display: none; }
.build:not(.anim) .badge.blank .badge-in, .build.alive .badge.blank .badge-in { background: #121211; }
.b-replay { right: 16px; bottom: 16px; }

/* ---------- 8. Live demo: three steps ---------- */
.start { margin-top: clamp(32px, 4vw, 52px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 40px); }
.start-art { height: 220px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 22px; }
.start-art .badge { --bw: 140px !important; transform: rotate(var(--tilt)); }
.start h3 { font: 800 clamp(22px, 1.9vw, 26px)/1.1 var(--font-d); letter-spacing: -.015em; display: flex; align-items: baseline; gap: 12px; }
.start-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 17px; flex: none; transform: translateY(-3px); }
.start > li > p { margin-top: 8px; padding-left: 46px; max-width: 24em; font-size: 15.5px; }
.dur { display: inline-flex; align-items: center; margin: 12px 0 0 46px; font: 600 13px/1 var(--font-t); padding: 7px 11px; border-radius: 99px; background: var(--yellow); }

/* ---------- 9. Pricing ---------- */
.price { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center; }
.price .sec-lede { margin-top: 16px; }
.price-tile { background: var(--yellow); padding: clamp(24px, 3vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.price-line { font: 700 clamp(17px, 1.5vw, 22px)/1 var(--font-d); display: flex; flex-wrap: nowrap; align-items: baseline; gap: 10px; white-space: nowrap; }
.price-line strong { font: 800 clamp(46px, 5vw, 72px)/.9 var(--font-d); letter-spacing: -.035em; }

/* ---------- 10. The crew ---------- */
.crew-scroll { margin-top: clamp(28px, 4vw, 44px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 0 var(--gutter) 64px; margin-bottom: -40px; scrollbar-width: thin; }
.crew-scroll:focus-visible { outline-offset: -3px; }
.crew-rail { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: clamp(20px, 3vw, 44px); min-width: max-content; margin-inline: auto; max-width: var(--max); padding-inline: 12px; }
.crew-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; border-radius: 5px; background: var(--ink); }
.crew-rail .lanyard { scroll-snap-align: center; padding-top: 5px; }
.pill { position: relative; z-index: 2; margin-top: -14px; font: 700 13.5px/1 var(--font-t); padding: 8px 13px; border-radius: 99px; background: #fff; color: var(--ink); box-shadow: 0 6px 14px -8px rgb(27 26 25 / .5); }
.pill-now { background: var(--yellow); }

/* ---------- 11. Questions ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(32px, 5vw, 80px); align-items: start; }
.faq .h2 { position: sticky; top: 32px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 14px 0; font: 700 clamp(17.5px, 1.4vw, 20px)/1.3 var(--font-d); cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.pm { position: relative; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; flex: none; }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.pm::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-list details p { padding: 0 52px 22px 0; color: var(--soft); max-width: 42em; text-wrap: pretty; font-size: 15.5px; }
.faq-list details p a { color: var(--ink); font-weight: 600; }

/* ---------- 12. Contact ---------- */
.demo { overflow: hidden; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); }
.demo-main .sec-lede { margin-top: 16px; }
.form-card { margin-top: 28px; background: #fff; border-radius: 22px; padding: clamp(20px, 2.6vw, 32px); max-width: 600px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label { font: 700 15px/1.2 var(--font-d); }
.field .opt { font: 500 13px/1.2 var(--font-t); color: var(--soft); }
.field input {
  min-height: 50px; width: 100%; border: 2px solid #d6d3cc; border-radius: 12px; padding: 0 14px; background: #fff;
  font: 500 16px/1.2 var(--font-t); color: var(--ink); transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.field input:hover { border-color: #aaa69d; }
.field input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.field input:user-invalid, .tried .field input:invalid { border-color: var(--human); }
.err { display: none; font-size: 13.5px; font-weight: 500; color: var(--human); }
.field input:user-invalid + .err, .tried .field input:invalid + .err { display: block; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2px; }
.form-note { margin-top: 14px; font-size: 13.5px; color: var(--soft); }
.support { margin-top: 22px; max-width: 600px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.5; }
.support b { font-weight: 700; }
.support .tag { margin: 0 2px; }
.ph-text { border-bottom: 2px dashed var(--ink); }
.demo-badge { display: flex; justify-content: center; align-items: flex-start; margin-top: calc(-1 * var(--sec)); }
.demo-badge .lanyard { --bw: 220px; --strap: calc(var(--sec) + 56px); }

/* ---------- Pricing page (pricing/index.html): three plans in columns ---------- */
.page-head { padding-block: clamp(32px, 4.6vw, 64px) 0; }
.page-head h1 { font-size: clamp(34px, 4.4vw, 58px); max-width: 14em; }
.page-head .sec-lede { margin-top: 16px; }
.tiers { margin-top: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); align-items: stretch; }
.tier { display: flex; flex-direction: column; padding: clamp(20px, 2.2vw, 30px); background: var(--mint); }
.tier:nth-child(2) { background: var(--yellow); }
.tier:nth-child(3) { background: var(--lav); }
.tier-name { font: 800 clamp(20px, 1.7vw, 24px)/1.1 var(--font-d); letter-spacing: -.015em; }
.tier-price { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font: 700 clamp(15px, 1.2vw, 17px)/1 var(--font-d); }
.tier-price strong { font: 800 clamp(44px, 4.2vw, 60px)/.9 var(--font-d); letter-spacing: -.035em; }
.tier-rows { margin-block: 22px 24px; border-top: 1px solid rgb(27 26 25 / .22); }
.tier-rows > div { padding: 12px 0; border-bottom: 1px solid rgb(27 26 25 / .22); }
.tier-rows dt { font: 600 12.5px/1.2 var(--font-t); }
.tier-rows dd { margin-top: 4px; font: 700 clamp(17px, 1.4vw, 19px)/1.25 var(--font-d); text-wrap: pretty; }
.tier .btn { margin-top: auto; }
.price-help { margin-top: clamp(28px, 3.4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.price-help .sec-lede { max-width: 38em; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 14.5px/1 var(--font-t); color: var(--soft); text-decoration: none; }
.back:hover { color: var(--ink); }
.back .ic { width: 16px; height: 16px; transform: rotate(180deg); }

/* ---------- Footer ---------- */
/* The deep bottom padding keeps the last links clear of the chat widget's button, which will sit bottom right. */
.foot { background: var(--ink); color: #d9d6cf; padding-block: 48px 96px; --focus: var(--yellow); }
.foot .ph-text { border-bottom-color: var(--yellow); color: var(--yellow); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 56px; }
.foot-co { margin-top: 12px; font-size: 14px; max-width: 34em; }
.foot-links { display: grid; gap: 2px; font-size: 14.5px; justify-items: start; }
.foot-links a { color: var(--paper); text-decoration: none; display: inline-block; padding-block: 8px; }
.foot-links a:hover { text-decoration: underline; }
.foot ::selection { background: var(--yellow); color: var(--ink); }

/* ================= Responsive ================= */
@media (min-width: 1080px) {
  /* The bar is the first column and stays in view while the page scrolls. The page fills the screen: content
     centres in the space beside the bar and coloured sections run to the right edge. A centred frame with
     tinted margins was tried and dropped — it left an 8px sliver either side on a 1512px laptop and cut the
     coloured sections short on wide screens. */
  body { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); align-items: start; }
  .rail { position: sticky; top: 0; left: auto; bottom: auto; height: 100vh; height: 100dvh; grid-column: 1; grid-row: 1 / span 2; }
  main, .foot { grid-column: 2; min-width: 0; }
  .topbar { display: none; }
  [id] { scroll-margin-top: 24px; }
}

@media (max-width: 1079px) {
  .rail { display: none; }
  .topbar { display: flex; }
}

@media (max-width: 959px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: clamp(28px, 6vw, 48px) 0 0; }
  .hero-text { padding-inline: var(--gutter); }
  .hero-demo { padding-inline: var(--gutter); }
  .hero-demo .chat { height: min(420px, 56vh); }
  h1 { font-size: clamp(34px, 9.4cqi, 72px); }
  .hero-lede { margin-top: 22px; }

  .group-grid, .group-grid.flip, .results, .price, .faq, .demo-grid, .play { grid-template-columns: minmax(0, 1fr); }
  .group-grid.flip .g-text { order: 0; }
  .chart { grid-auto-rows: 14px; row-gap: 3px; }
  .faq .h2 { position: static; }
  .demo-badge { display: none; }
  .play { align-items: start; }
  .chat { height: min(480px, 62vh); }
  /* The caption inside the phone mirrors the step the notes below are on. */
  .now {
    position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px;
    background: var(--ink); color: var(--paper); font: 700 13.5px/1.2 var(--font-d);
    box-shadow: 0 10px 24px -12px rgb(27 26 25 / .7);
  }
  .now[hidden] { display: none; }
  .now-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; flex: none; }
  .now-t { flex: 1; min-width: 0; }
  .now-dots { display: inline-flex; gap: 4px; flex: none; }
  .now-dots i { width: 6px; height: 6px; border-radius: 50%; background: #5d5c58; }
  .now-dots i.on { background: #fff; }
  .now-dots i.done { background: #a3a29a; }
  .build { grid-template-columns: minmax(0, 1fr); padding-top: 56px; }
  .b-site { justify-self: stretch; max-width: none; }
  .b-arrow { transform: rotate(90deg); }
  .b-chat { max-width: none; flex: 1; }
  .b-replay { position: static; justify-self: end; margin-top: 4px; }

  .tiers { grid-template-columns: minmax(0, 1fr); max-width: 540px; }
  .start { grid-template-columns: minmax(0, 1fr); max-width: 540px; }
  .start li { display: grid; grid-template-columns: 136px minmax(0, 1fr); column-gap: 20px; align-items: center; }
  .start-art { grid-row: 1 / span 3; height: auto; margin: 0; }
  .start-art .badge { --bw: 124px !important; }
  .start h3 { align-self: end; }
  .start > li > p { padding-left: 0; }
  .dur { margin: 10px 0 0; justify-self: start; }
}

@media (max-width: 720px) {
  /* On phones the flow reads top to bottom: where they write, her, where her work lands. */
  .flow { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kin" "in" "hub" "kout" "out"; row-gap: 12px; }
  .flow-lines { display: none; }
  .flow-hub { justify-self: center; margin-block: 6px; }
  .flow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 10px; }
  .flow-list .chan { margin-block: 0; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .dash-body { grid-template-columns: minmax(0, 1fr); }
  .side { border-top: 1px solid var(--line); }
  .rows { border-right: 0; }
  .trust-logos { flex-basis: 100%; justify-content: flex-start; gap: 14px 22px; }
  .minis { grid-template-columns: minmax(0, 1fr); }
  .bar { width: calc(var(--v) * 66% / 94); }
}

@media (max-width: 640px) {
  .scene { padding: 16px; }
  .scene-see { padding-bottom: 16px; }
  .report { position: relative; left: auto; bottom: auto; width: 92%; margin: -8px 0 0 auto; }
  .eg-tag { top: -12px; right: 12px; }
  .ib-head > p:first-child { flex: 1 1 100%; }
  .handling { margin-left: 0; }

  .start li { grid-template-columns: 104px minmax(0, 1fr); column-gap: 16px; }
  .start-art .badge { --bw: 100px !important; }
  .start-n { width: 30px; height: 30px; font-size: 15px; }
  .faq-list details p { padding-right: 0; }
  .flow-list { grid-template-columns: minmax(0, 1fr); }
  .play { padding: 16px; }
  .note { padding: 12px 14px; }
  .replay { position: static; justify-self: center; }
  .try { justify-content: flex-start; }
  .build { padding: 16px; padding-top: 48px; }
  .b-crew { flex-direction: column; align-items: flex-start; }
  .rc-head { align-items: flex-start; }
  .rc-list { font-size: 17px; }
  .actions .btn { flex: 1 1 auto; }
}

@media (max-width: 599px) {
  /* The phone's first screen carries the headline, one sentence and the start of the example. The second sentence,
     the hero buttons and the line about later crewmates are left out here: the green WhatsApp button stays in the
     top bar, and the menu and the page below cover the rest. */
  .hero-grid { gap: 36px; padding-top: 40px; }
  .hero-lede { margin-top: 18px; }
  .lede-more, .hero .actions, .hero-crew { display: none; }
  .topbar { padding-block: 10px; }

  .hero-demo { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .hero-badge { display: none; }
  /* The tracker on a phone: four equal columns, the numbers in one row joined by a line, each step's word under its
     number. It keeps this shape whether the chat is playing or not, so nothing wraps or jumps. */
  .hero-demo .notes { --n: 30px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .hero-demo .note { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 6px; padding: 0 3px; border-radius: 0; text-align: center; }
  .hero-demo .note:not(:last-child)::after { top: calc(var(--n) / 2 - 1px); bottom: auto; left: calc(50% + var(--n) / 2 + 5px); right: calc(-50% + var(--n) / 2 + 5px); width: auto; height: 2px; }
  .hero-demo .note h3 { max-width: none; padding-top: 0; font-size: 13.5px; line-height: 1.15; }
  .hero-demo .note h3 small { display: none; }
  .hero-demo .notes.live .note.on { background: none; }
  .hero-demo .chat { height: min(400px, 56vh); }

  .head-cta { padding: 0 12px; font-size: 14.5px; }
  .menu summary span { display: none; }
  .menu summary { padding: 0 12px; }
  .logo { font-size: 20px; }
  .logo svg { width: 28px; height: 28px; }
}

@media (max-width: 380px) {
  /* Not enough room for the logo beside the words on the narrowest phones; the green says WhatsApp. */
  .head-cta .ic { display: none; }
  .logo { font-size: 18px; gap: 8px; }
  .logo svg { width: 26px; height: 26px; }
  .head-cta { padding: 0 11px; font-size: 14px; }
}

@media (max-width: 339px) {
  .topbar .logo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
