/* ArkFlow site styles: brand tokens and the shared mock-ups. Linked after the kit's CSS. */
/* ArkFlow brand board (Brand Board folder): Deep Navy #0F172A ink, Electric Blue accent, Montserrat + Inter.
   The light site flips the board's navy ratio: white and pale slate grounds, navy text, blue buttons. */
:root {
  --p-bg: #f8fafc; --p-surface: #eef2f7; --p-ink: #0f172a; --p-muted: #475569;
  --p-accent: #2563eb; --p-accent-ink: #ffffff; --p-action: #2563eb; --p-action-ink: #ffffff;
  --p-inv-bg: #0f172a; --p-inv-surface: #1e293b; --p-inv-ink: #e2e8f0; --p-inv-muted: #94a3b8;
  --p-inv-accent: #3b82f6; --p-inv-accent-ink: #0f172a; --p-inv-action: #3b82f6; --p-inv-action-ink: #0f172a;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-text: "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 600;
  --display-tracking: -0.025em;
  --display-tracking-xl: -0.032em;
  --display-stretch: 100%;
  --ly-scale: 1.04;
}
/* the lit ground behind product UI, tuned to the brand's blue */
html[data-ground="sky"] { --ground-bg: #d5e1f2; --ground-surface: #e3ebf7; --ground-ink: #1b2a44; --ground-muted: #475569; --ground-accent: #2563eb; }

  /* nav logo: the client's own lockup */
  .nav__logo img { height: 34px; width: auto; display: block; }
  @media (max-width: 639px) { .nav__logo img { height: 28px; } }
  .closing .nav__logo img { height: 40px; }

  /* ---------- hero collage pieces (inside the visual only) ---------- */
  .hero--triptych .hero__cta .btn { height: var(--btn-h); font-size: var(--t-body); padding-inline: var(--s-6); }
  .ly-collage { container-type: inline-size; }
  .ly-collage .ly-piece { box-shadow: 0 1px 2px rgb(15 23 42 / .08), 0 22px 48px -22px rgb(15 23 42 / .35); background: #fff; color: #0f172a; font: 400 max(13px, 2cqw)/1.35 var(--font-text); }
  .pc-pad { padding: 3cqw 3.4cqw; display: grid; gap: 1.6cqw; align-content: start; }
  .pc-lbl { display: flex; align-items: center; gap: 1.4cqw; color: #475569; font-size: max(13px, 1.8cqw); }
  .pc-lbl img { width: max(16px, 3cqw); height: max(16px, 3cqw); }
  .pc-big { font: 600 max(16px, 3.4cqw)/1.15 var(--font-display); letter-spacing: -0.02em; }
  .pc-chip { display: inline-flex; align-items: center; gap: .8cqw; justify-self: start; padding: .5cqw 1.6cqw; border-radius: 99px; background: #e8f0fe; color: #1d4ed8; font-weight: 500; font-size: max(13px, 1.7cqw); }
  .pc-chip--ok { background: #dcfce7; color: #166534; }
  .pc-row { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; padding-top: 1.4cqw; border-top: 1px solid #e2e8f0; }
  .pc-row em { font-style: normal; font-weight: 500; }
  /* the phone with a WhatsApp thread */
  .ly-collage .pc-phone { background: #0f172a; border-radius: 6cqw; padding: 1.6cqw; }
  .pc-phone__screen { height: 100%; border-radius: 4.6cqw; overflow: hidden; background: #efeae2; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
  .pc-phone__input { margin: 0 2.6cqw 3cqw; padding: 1.6cqw 2.6cqw; border-radius: 99px; background: #fff; color: #64748b; font-size: max(13px, 1.8cqw); }
  .pc-phone__bar { display: flex; align-items: center; gap: 1.6cqw; padding: 4.4cqw 3cqw 2cqw; background: #f7f7f7; border-bottom: 1px solid #e5e7eb; }
  .pc-phone__bar img { width: max(18px, 3.6cqw); height: max(18px, 3.6cqw); }
  .pc-phone__bar b { font-weight: 600; font-size: max(13px, 2.1cqw); }
  .pc-phone__bar span { display: block; color: #64748b; font-size: max(13px, 1.6cqw); }
  /* the chat sits on the message bar like a real phone: the newest messages always show, older ones fade under the header */
  .pc-thread { display: grid; gap: 1.8cqw; align-content: end; padding: 3cqw 2.6cqw; overflow: hidden;
               -webkit-mask-image: linear-gradient(to bottom, transparent, #000 6cqw); mask-image: linear-gradient(to bottom, transparent, #000 6cqw); }
  .pc-msg { max-width: 86%; padding: 1.6cqw 2.2cqw; border-radius: 2.4cqw; font-size: max(13px, 1.95cqw); line-height: 1.35; box-shadow: 0 1px 0 rgb(0 0 0 / .06); }
  .pc-msg small { display: block; margin-top: .6cqw; color: #64748b; font-size: max(11px, 1.4cqw); text-align: right; }
  .pc-msg--in { background: #fff; justify-self: start; }
  .pc-msg--out { background: #d9fdd3; justify-self: end; }
  .pc-day { justify-self: center; padding: .6cqw 2cqw; border-radius: 99px; background: #fff; color: #64748b; font-size: max(11px, 1.5cqw); }
  /* the small kanban */
  .pc-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; }
  .pc-col { display: grid; gap: 1.2cqw; align-content: start; }
  .pc-col > span { color: #475569; font-size: max(13px, 1.6cqw); }
  .pc-deal { border: 1px solid #e2e8f0; border-radius: 1.6cqw; padding: 1.4cqw; display: grid; gap: .4cqw; font-size: max(13px, 1.7cqw); }
  .pc-deal b { font-weight: 500; }
  .pc-deal i { font-style: normal; color: #475569; }
  .pc-deal.is-on { border-color: #2563eb; box-shadow: inset 0 0 0 1px #2563eb; }
  .pc-stars { color: #f59e0b; letter-spacing: .1em; font-size: max(14px, 2.4cqw); }
  .pc-icons { display: flex; gap: 1.4cqw; }
  .pc-icons img { width: max(20px, 4cqw); height: max(20px, 4cqw); }
  .pc-reply { background: #f1f5f9; border-radius: 1.6cqw; padding: 1.6cqw 2cqw; }
  @media (max-width: 639px) { .ly-collage .ly-piece.pc-hide-sm { display: none; } }

  /* ---------- app frame (sections-library app-frame recipe) ---------- */
  .app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
  .app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
  .app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
  .app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
  @media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
  @media (max-width: 1023px) {
    .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
    .app > .app__pane--list { max-height: 252px; }
    .app > .app__pane--list::after { display: none; }
    .app .ui-win__side { display: none; }
    .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
    .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
  }
  @media (max-width: 639px) {
    .app.ui { grid-template-rows: minmax(0, 1fr); }
    .app > .app__pane--list { display: none; }
    .app > .app__pane + .app__pane { border-top: 0; }
  }
  .app .ui-chat { height: 100%; }
  .app .ui-chat__ph { color: #4b5563; }

  /* ---------- website mock inside the split frame ---------- */
  .stage > .site { inset: 56px -40px -40px 56px; }
  .site { position: absolute; background: #fff; border: 1px solid var(--u-border, #e2e8f0); border-radius: 12px; box-shadow: 0 30px 60px -30px rgb(15 23 42 / .35); overflow: hidden; font: 400 13px/1.4 var(--font-text); color: #0f172a; display: grid; grid-template-rows: auto auto 1fr; }
  .site__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
  .site__bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
  .site__url { margin-left: 12px; flex: 0 1 260px; padding: 4px 12px; border-radius: 99px; background: #fff; border: 1px solid #e2e8f0; color: #475569; }
  .site__nav { display: flex; align-items: center; gap: 22px; padding: 16px 28px; }
  .site__nav b { font: 600 16px/1 var(--font-display); margin-right: auto; color: #0e7490; white-space: nowrap; }
  .site__nav span { color: #475569; }
  .site__nav em { font-style: normal; padding: 8px 14px; border-radius: 8px; background: #0e7490; color: #fff; font-weight: 500; }
  .site__hero { padding: 32px 28px; display: grid; justify-items: start; align-content: start; }
  .site__hero h4 { margin: 0 0 10px; font: 600 28px/1.1 var(--font-display); letter-spacing: -0.02em; }
  .site__hero p { margin: 0 0 16px; color: #334155; font-size: 14px; max-width: 34ch; }
  .site__prices { list-style: none; margin: 28px 0 0; padding: 0; width: min(100%, 420px); }
  .site__prices li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #e2e8f0; font-size: 14px; }
  .site__prices b { font-weight: 600; }
  .site__cta { display: inline-block; padding: 10px 16px; border-radius: 8px; background: #0e7490; color: #fff; font-weight: 500; }
  @media (max-width: 1023px) { .stage > .site { inset: 32px -40px -40px 32px; } }
  @media (max-width: 639px) { .stage > .site { inset: 16px -40px -40px 16px; } .site__nav span { display: none; } }

  /* ---------- faq: channel icons ---------- */
  .chan { --ratio: 62%; margin-top: var(--s-5); }
  .chan__grid { position: absolute; inset: 32px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-content: start; }
  .chan__grid li { display: grid; place-items: center; aspect-ratio: 1.5; background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgb(15 23 42 / .08); }
  .chan__grid img { width: 36px; height: 36px; object-fit: contain; }
  @media (max-width: 1023px) { .chan { --ratio: 34%; } .chan__grid { grid-template-columns: repeat(6, 1fr); inset: 24px; gap: 12px; } }
  @media (max-width: 639px) { .chan { display: none; } }
  /* ---------- industries: the chat beside the list changes with the row ---------- */
  .ind-frame { position: relative; }
  .stage > .ind-chat { inset: 48px 48px auto 48px; }
  .ind-chat { position: absolute; display: grid; gap: 12px; align-content: start; background: #fff; border: 1px solid var(--u-border, #e2e8f0); border-radius: 16px; padding: 20px; box-shadow: 0 30px 60px -30px rgb(15 23 42 / .35); font: 400 15px/1.45 var(--font-text); color: #0f172a; }
  .ind-chat[hidden] { display: none; }
  .ind-chat__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #e2e8f0; }
  .ind-chat__head img { width: 22px; height: 22px; }
  .ind-chat__head b { font-weight: 600; }
  .ind-chat__head span { margin-left: auto; color: #475569; font-size: 13px; }
  .ind-msg { max-width: 86%; padding: 10px 14px; border-radius: 14px 14px 14px 4px; }
  .ind-msg--in { background: #f1f5f9; justify-self: start; }
  .ind-msg--out { background: #2563eb; color: #fff; justify-self: end; border-radius: 14px 14px 4px 14px; }
  .ind-done { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding-top: 12px; color: #166534; font-weight: 500; font-size: 14px; }
  .ind-done::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
  @media (max-width: 639px) { .stage > .ind-chat { inset: 16px 16px auto 16px; } .ind-chat { font-size: 14px; } .peek-rows p { display: none; } }

  /* ---------- shared mock-ups (pipeline, small cards, agent card, hero panel) ---------- */
  /* pipeline board in the split frame */
  .kb { position: absolute; inset: 56px -48px -48px 56px; background: #fff; border: 1px solid var(--u-border, #e2e8f0); border-radius: 14px; box-shadow: 0 30px 60px -30px rgb(15 23 42 / .35); overflow: hidden; font: 400 13px/1.4 var(--font-text); color: #0f172a; display: grid; grid-template-rows: auto 1fr; }
  .kb__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #e2e8f0; }
  .kb__head b { font: 600 15px/1.2 var(--font-display); }
  .kb__head span { color: #475569; }
  .kb__cols { display: grid; grid-template-columns: repeat(4, 200px); gap: 14px; padding: 16px 18px; align-content: start; }
  .kb__col { display: grid; gap: 10px; align-content: start; }
  .kb__col > p { margin: 0; display: flex; justify-content: space-between; color: #475569; font-weight: 500; }
  .kb__deal { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; display: grid; gap: 3px; background: #fff; }
  .kb__deal b { font-weight: 500; }
  .kb__deal span { color: #475569; }
  .kb__deal em { font-style: normal; font-weight: 600; }
  .kb__deal.is-on { border-color: #2563eb; box-shadow: inset 0 0 0 1px #2563eb; }
  @media (max-width: 1023px) { .kb { inset: 32px -48px -48px 32px; } }
  @media (max-width: 639px) { .kb { inset: 16px -48px -48px 16px; } }

  /* small mocks on the money cards */
  .mk { background: #fff; border: 1px solid var(--u-border, #e2e8f0); border-radius: 12px; box-shadow: 0 20px 40px -24px rgb(15 23 42 / .35); padding: 18px; display: grid; gap: 10px; font: 400 13px/1.4 var(--font-text); color: #0f172a; }
  .mk__top { display: flex; justify-content: space-between; align-items: center; color: #475569; }
  .mk__big { font: 600 26px/1.1 var(--font-display); letter-spacing: -0.01em; }
  .mk__row { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid #e2e8f0; }
  .mk__row b { font-weight: 500; }
  .mk__chip { justify-self: start; padding: 3px 10px; border-radius: 99px; background: #dcfce7; color: #166534; font-weight: 500; }
  .mk__btn { justify-self: stretch; text-align: center; padding: 9px; border-radius: 8px; background: #0f172a; color: #fff; font-weight: 500; }

  /* agents by industry: the card beside the list */
  .stage > .ag { position: absolute; inset: 48px 48px auto 48px; }
  .ag { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; box-shadow: 0 30px 60px -30px rgb(15 23 42 / .35); font: 400 15px/1.45 var(--font-text); color: #0f172a; }
  .ag[hidden] { display: none; }
  .ag__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #e2e8f0; }
  .ag__head img { width: 22px; height: 22px; }
  .ag__head b { font-weight: 600; }
  .ag__head span { margin-left: auto; color: #475569; font-size: 13px; }
  .ag ul { list-style: none; margin: 0; padding: 0; }
  .ag li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
  .ag li:last-child { border-bottom: 0; padding-bottom: 0; }
  .ag li > span:last-child { display: grid; }
  .ag li b { font-weight: 500; }
  .ag li small { color: #475569; font-size: 14px; }
  .ag__dot { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: #2563eb; box-shadow: 0 0 0 4px #e8f0fe; }
  @media (max-width: 1023px) { .stage > .ag { inset: 24px 24px auto 24px; } }
  /* hero picture panel on the lit ground */
  .hero--split .hero__media.wm { position: relative; border-radius: var(--r-lg); background: radial-gradient(70% 60% at 20% 10%, var(--ground-surface), transparent 70%), var(--ground-bg); overflow: hidden; }
  /* the pipeline board inside a wide frame (industry pages) */
  .kb--wide .kb__cols { grid-template-columns: repeat(4, minmax(200px, 1fr)); }
  @media (max-width: 639px) { .stage > .ag { inset: 16px 16px auto 16px; } .ag { padding: 16px; font-size: 14px; } .ag li { padding: 8px 0; } .ag li small { display: none; } }

  /* ---------- industry pages ---------- */
  /* hero: the AI chat on the lit ground */
  .wm > .ind-chat { inset: 56px 56px auto 56px; box-shadow: 0 30px 70px -30px rgb(15 23 42 / .45); }
  @media (max-width: 1023px) { .wm > .ind-chat { inset: 24px 24px auto 24px; } }
  @media (max-width: 639px) { .wm > .ind-chat { position: relative; inset: auto; margin: 16px; } }
  .hero__kicker { margin-bottom: var(--s-4); color: var(--accent, #2563eb); }
  /* the four-agent card: taller frame while the columns are narrow */
  .ag-frame { --ratio: 80%; }
  @media (min-width: 1024px) and (max-width: 1279px) { .ag-frame { --ratio: 135%; } }
  @media (min-width: 640px) and (max-width: 1023px) { .ag-frame { --ratio: 62%; } }
  @media (max-width: 639px) { .ag-frame { --ratio: 100%; } }
  /* industry pages: links to the other industries under the questions heading */
  .other-ind { margin-top: var(--s-6); }
  .other-ind ul { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-2); }
  @media (max-width: 639px) { .other-ind { margin-top: var(--s-4); } }
  .kb-frame { --ratio: 100%; }
  @media (min-width: 640px) and (max-width: 1023px) { .ind-split .facts { display: none; } .kb-frame { --ratio: 70%; } }
  /* industry hero: the first result card in the panel's lower-right corner */
  /* only where the panel is tall enough for both cards (wide desktop screens) */
  .wm > .hero-note { position: absolute; right: 56px; bottom: 56px; width: 320px; z-index: 2; display: none; }
  @media (min-width: 1400px) and (min-height: 860px) { .wm > .hero-note { display: block; } }

  /* ---------- blog (Insights): long pages that flow instead of one screen per section ---------- */
  html main > :is(section, .section)[data-screen="free"] { height: auto; min-height: 0; }
  html main > :is(section, .section)[data-screen="free"] > .wrap { height: auto; }
  .blog > .blog-head { padding-bottom: var(--s-7, 48px); }
  .blog > .blog-head + .section, .blog > .post-head + .section { padding-top: 0; }
  .blog-head h1 { font-size: var(--ly-h1-quiet); line-height: 1.08; max-width: 20ch; }
  .blog-head__lead { margin-top: var(--s-4); max-width: 56ch; }
  .blog-head__desc { margin-top: var(--s-3); max-width: 64ch; }
  .blog-list__h { font-size: var(--t-h3, 24px); margin-bottom: var(--s-5); }
  .blog-foot { margin-top: var(--s-6); }

  .crumbs ol { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
  .crumbs li + li::before { content: "/"; margin-right: 8px; color: #94a3b8; }
  .crumbs a { color: inherit; text-decoration: none; }
  .crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

  .post-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
  .post-card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md, 12px); position: relative; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .post-card:hover { border-color: #94a3b8; transform: translateY(-2px); }
  .post-card__topic { position: relative; z-index: 1; align-self: start; font-size: 13px; font-weight: 500; color: #1d4ed8; text-decoration: none; }
  .post-card h3 { margin: 0; font: 600 20px/1.3 var(--font-display); letter-spacing: -0.01em; }
  .post-card h3 a { color: inherit; text-decoration: none; }
  .post-card h3 a::after { content: ""; position: absolute; inset: 0; }
  .post-card p { margin: 0; color: #334155; font-size: 15px; }
  .post-card .post-card__meta { margin-top: auto; color: var(--muted); font-size: 13px; }
  @media (max-width: 1023px) { .post-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 639px) { .post-cards { grid-template-columns: 1fr; } }

  .topic-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
  .topic-rows li { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-2) var(--s-6); align-items: baseline; }
  .topic-rows a { display: flex; gap: var(--s-3); align-items: baseline; color: inherit; text-decoration: none; }
  .topic-rows a:hover .topic-rows__name { text-decoration: underline; text-underline-offset: 3px; }
  .topic-rows__name { font-weight: 500; font-size: 18px; }
  .topic-rows__count { color: var(--muted); font-size: 14px; }
  .topic-rows p { margin: 0; color: #334155; }
  @media (max-width: 639px) { .topic-rows li { grid-template-columns: 1fr; } }
  .other-topics { margin-top: var(--s-7, 48px); }
  .other-topics ul { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }

  /* a post: the header, then the On this page list beside the text */
  .post-head__in { max-width: 760px; }
  .post-head h1 { font-size: min(var(--ly-h1-quiet), 46px); line-height: 1.12; max-width: 26ch; }
  .post-head__lead { margin-top: var(--s-4); font-size: 20px; line-height: 1.5; color: #334155; }
  .post-head__meta { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); }
  .post-head__meta b { color: var(--ink); font-weight: 500; }
  html main > section.post > .wrap.post__grid:not(.grid) { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7, 48px); }
  @media (min-width: 1024px) { html main > section.post > .wrap.post__grid:not(.grid) { grid-template-columns: 240px minmax(0, 720px); justify-content: start; gap: 64px; } }
  .post-toc { display: none; }
  @media (min-width: 1024px) {
    .post-toc { display: block; position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; }
    .post-toc ol { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: 10px; font-size: 14px; line-height: 1.4; }
    .post-toc a { color: #475569; text-decoration: none; }
    .post-toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
  }

  /* the text of a post */
  .post-body { font: 400 18px/1.7 var(--font-text); color: #1e293b; min-width: 0; }
  .post-body > * + * { margin-top: 1.1em; }
  .post-body h2 { margin-top: 2.2em; font: 600 28px/1.25 var(--font-display); letter-spacing: -0.015em; color: var(--ink); scroll-margin-top: 96px; }
  .post-body h3 { margin-top: 1.8em; font: 600 21px/1.3 var(--font-display); color: var(--ink); }
  .post-body > :is(h2, h3) + * { margin-top: 0.6em; }
  .post-body p { margin-bottom: 0; }
  .post-body > ul, .post-body > ol:not(.post-steps) { margin-bottom: 0; padding-left: 1.3em; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.45em; }
  .post-body > :is(ul, ol) > li { overflow-wrap: anywhere; }
  .post-body > ul, .post-compare ul { list-style: disc; }
  .post-body > ol:not(.post-steps) { list-style: decimal; }
  .post-compare ul { padding-left: 1.2em; display: grid; gap: 6px; }
  .post-body li::marker { color: #2563eb; }
  .post-body blockquote { margin: 1.8em 0 0; padding: 16px 0 0; border-top: 2px solid #2563eb; max-width: 30ch; font: 500 22px/1.4 var(--font-display); color: var(--ink); }
  .post-body blockquote p { margin: 0; }
  .post-body figure { margin: 1.8em 0 0; }
  .post-body figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
  .post-steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 18px; }
  .post-steps li { counter-increment: step; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; }
  .post-steps li::before { content: counter(step, decimal-leading-zero); grid-row: 1 / span 2; font: 500 14px/1.9 var(--font-mono); color: #2563eb; }
  .post-steps b { font-weight: 600; color: var(--ink); }
  .post-steps span { color: #334155; }
  .post-callout { margin: 1.8em 0 0; padding: 20px 24px; border: 1px solid #bfdbfe; background: #eff6ff; border-radius: 14px; display: grid; gap: 8px; }
  .post-callout p { margin: 0; }
  .post-callout__title { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #1d4ed8; }
  /* a process, step by step */
  .post-flow ol { list-style: none; margin: 0; padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; counter-reset: flow; }
  .post-flow li { counter-increment: flow; position: relative; display: grid; align-content: start; gap: 4px; padding: 12px; border: 1px solid #bfdbfe; background: #f8fbff; border-radius: 10px; font-size: 14px; line-height: 1.4; }
  .post-flow li::before { content: counter(flow, decimal-leading-zero); font: 500 12px/1 var(--font-mono); color: #2563eb; margin-bottom: 4px; }
  .post-flow li b { font-weight: 600; color: var(--ink); }
  .post-flow li span { color: #475569; font-size: 13px; }
  .post-flow li.is-loss { border-color: #fecaca; background: #fef2f2; }
  .post-flow li.is-loss::before { color: #b91c1c; }
  .post-flow li.is-loss { border-style: dashed; }
  .post-flow li.is-loss b { text-decoration: line-through; text-decoration-color: #b91c1c; }
  /* two columns side by side */
  .post-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .post-compare figcaption { grid-column: 1 / -1; }
  .post-compare__col { padding: 18px 20px; border: 1px solid #bfdbfe; background: #f8fbff; border-radius: 14px; font-size: 15px; line-height: 1.5; }
  .post-compare__col.is-loss { border-color: #fecaca; background: #fef2f2; }
  .post-body .post-compare__title { margin: 0 0 10px; font-weight: 600; color: var(--ink); }
  .post-compare ul { margin: 0; }
  @media (max-width: 639px) { .post-compare { grid-template-columns: 1fr; } }
  /* a row of figures */
  .post-metrics { padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
  .post-metrics dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px 24px; }
  .post-metrics dl > div { display: flex; flex-direction: column; }
  .post-metrics dd { order: 1; margin: 0; font: 600 30px/1.1 var(--font-display); color: var(--ink); }
  .post-metrics dt { order: 2; margin-top: 8px; font-size: 14px; line-height: 1.45; color: #475569; }
  .post-body .post-metrics .post-note { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
  .post-image img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
  .post-table { margin: 1.8em 0 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .post-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
  .post-table :is(th, td) { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
  .post-table thead th { font-weight: 600; background: #f8fafc; color: var(--ink); }
  .post-table tbody tr:last-child > * { border-bottom: 0; }
  .post-table caption { caption-side: bottom; padding: 10px 16px; text-align: left; font-size: 14px; color: var(--muted); }
  .post-body .post-faq { margin-top: 0.6em; font-size: 17px; }
  .post-body .post-next { margin-top: 2.4em; padding: 24px; border: 1px solid var(--line); background: #fff; border-radius: 14px; display: grid; gap: 8px; }
  .post-next p { margin: 0; }
  .post-next__title { font-weight: 600; color: var(--ink); }
  .post-next .link { justify-self: start; margin-top: 4px; }
  .post-social { font-size: 15px; color: var(--muted); }
  .post-related { padding-top: var(--s-7, 48px); }
  @media (max-width: 639px) { .post-body { font-size: 17px; } .post-body h2 { font-size: 24px; } .post-head__lead { font-size: 18px; } }

  /* ---------- long pages moved from the old site (privacy, terms, cookies, compliance, about, case studies) ---------- */
  .post-body .doc-facts { margin: 1.4em 0 0; border-top: 1px solid var(--line); }
  .doc-facts > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
  .doc-facts dt { color: var(--muted); }
  .doc-facts dd { margin: 0; color: var(--ink); }
  @media (max-width: 639px) { .doc-facts > div { grid-template-columns: 1fr; } }
  .post-body .doc-meta { margin-top: 0.3em; font-size: 15px; color: var(--muted); }
  .post-body h4 { margin-top: 1.6em; font: 600 17px/1.3 var(--font-text); letter-spacing: .02em; text-transform: uppercase; color: #1d4ed8; }
  .post-body > h4 + p { margin-top: 0.4em; font-weight: 500; color: var(--ink); }
  .post-body .post-image--phone { max-width: 240px; }
  .post-image--phone img { border-radius: 24px; }
  .post-metrics__src { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
  .post-body code { font: 500 0.9em/1 var(--font-mono); padding: 2px 5px; background: #eef2f7; border-radius: 4px; }
  .post-body > p > a:not(.link), .post-body li a, .post-body dd a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 3px; }
  .post-body .doc-desc { color: #475569; font-size: 16px; }

  /* the WhatsApp chat button on every page (a plain link: nothing loads until it is tapped) */
  .wa-chat { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 20; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 14px; border-radius: 999px; background: #fff; color: #0f172a; font: 500 15px/1 var(--font-text); text-decoration: none; border: 1px solid #e2e8f0; box-shadow: 0 12px 32px -12px rgb(15 23 42 / .35); transition: transform .15s ease, box-shadow .15s ease; }
  .wa-chat:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgb(15 23 42 / .4); }
  .wa-chat:active { transform: translateY(0); }
  .wa-chat:focus-visible { outline: 2px solid var(--action, #2563eb); outline-offset: 3px; }
  .wa-chat img { width: 28px; height: 28px; }
  @media (max-width: 639px) { .wa-chat { width: 56px; padding: 0; justify-content: center; right: 16px; bottom: 16px; } .wa-chat span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
  @media print { .wa-chat { display: none; } }

  /* wide windows of any height (a laptop browser with toolbars, 1850 x 760): a section keeps at least its screens
     and grows past them when its text and cards need it, rather than running into the next one, as the kit already
     does from 640 to 1279; a .fill (a frame) still shrinks to the room left, so most sections stay exactly a screen */
  @media (min-width: 1280px) {
    main > :is(section, .section):not(.hero, .section--hero), footer.closing {
      height: auto; min-height: calc(var(--h, 1) * 100vh); min-height: calc(var(--h, 1) * 100svh);
      display: flex; flex-direction: column;
    }
    main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container), footer.closing > .wrap { flex: 1 0 auto; height: auto; min-height: 0; }
    /* a .fill grid with text in it (a list beside a frame) never gets shorter than its text */
    main > :is(section, .section):not(.hero, .section--hero) > .wrap > .grid.fill { min-height: auto; }
  }
  /* the industry lists (7 rows beside a chat) sit a little closer so they fit one laptop screen */
  @media (min-width: 640px) { .peek-rows > li { padding-block: var(--s-3); } .peek-rows > li:first-child { padding-top: 0; } }
  /* short screens (a laptop with toolbars): the hero grows past the first screen rather than cover the next section */
  @media (min-width: 1280px) and (max-height: 799px) {
    main > :is(.hero, .section--hero) { height: auto; min-height: 100vh; min-height: 100svh; }
    /* the home collage places its pieces in percentages, so it needs a height of its own once the hero no longer has one */
    .hero--triptych .ly-collage { height: auto; min-height: max(520px, calc(100svh - 200px)); }
  }

  /* shared by Case studies and Custom systems: real screenshots in a browser or phone frame, and an icon list */
  /* hero: Brewprint's live website with its ordering site on a phone in front */
  .cs-hero { position: relative; }
  .cs-hero > .cs-browser { position: absolute; inset: 48px -40px auto 48px; }
  .cs-hero > .cs-phone { position: absolute; left: 24px; bottom: 32px; width: 168px; z-index: 2; }
  .cs-browser { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 70px -30px rgb(15 23 42 / .45); }
  .cs-browser__bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; font: 400 12px/1 var(--font-text); color: #475569; }
  .cs-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
  .cs-browser__bar span { margin-left: 10px; padding: 4px 12px; border-radius: 99px; background: #fff; border: 1px solid #e2e8f0; }
  .cs-browser img { display: block; width: 100%; height: auto; }
  .cs-phone { background: #0f172a; border-radius: 30px; padding: 7px; box-shadow: 0 24px 48px -20px rgb(15 23 42 / .6); }
  .cs-phone img { display: block; width: 100%; height: auto; border-radius: 24px; }
  @media (max-width: 1023px) { .cs-hero > .cs-browser { inset: 24px -40px auto 24px; } .cs-hero > .cs-phone { width: 132px; left: 16px; bottom: 16px; } }

  .cs-parts { list-style: none; margin: var(--s-2) 0 0; padding: 0; }
  .cs-parts li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cs-parts li:first-child { padding-top: 0; }
  .cs-parts b { display: block; font-weight: 500; }
  .cs-parts span { color: var(--muted); }
  .cs-ico { width: 36px; height: 36px; border-radius: 10px; background: #e8f0fe; color: #1d4ed8; display: grid; place-items: center; }
  .cs-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .cs-links { display: flex; flex-wrap: wrap; gap: 24px; }

  .stage > .cs-admin { position: absolute; inset: 48px auto auto 48px; width: 960px; }
  @media (max-width: 1023px) { .stage > .cs-admin { inset: 24px auto auto 24px; width: 820px; } }
  @media (max-width: 639px) { .stage > .cs-admin { inset: 16px auto auto 16px; width: 640px; } }

  /* nav: seven words fit between the logo and the buttons. They take the space between the two (centred in it),
     and on a small laptop (1024-1279) they sit closer and Sign in leaves the bar (it stays in the footer and the phone menu) */
  @media (min-width: 1024px) {
    .nav--centre .nav__bar { grid-template-columns: auto minmax(0, 1fr) auto; }
    .nav--centre .nav__links { justify-self: center; }
  }
  @media (min-width: 1024px) and (max-width: 1279px) {
    .nav__bar { gap: var(--s-4); }
    .nav__link { padding: 0 6px; font-size: 14px; }
    .nav__link::before, .nav__link[aria-current="page"]::after { left: 6px; right: 6px; }
    .nav__actions > .nav__link { display: none; }
  }

  /* nav: a floating panel of blue-tinted glass. It sits 8px under the top of the window, rounded, 20px wider than
     the page's content on each side; the page shows through it, blurred, as it scrolls under.
     The glass is a layer behind the bar (::before), not the bar itself: a backdrop-filter on .nav would make it
     the box the phone menu's fixed sheet and button row are placed in, and squash them into the bar. */
  .nav {
    --glass: linear-gradient(180deg, rgb(239 246 255 / .78), rgb(219 234 254 / .6));
    --glass-solid: rgb(238 244 255 / .95);
    --glass-edge: rgb(37 99 235 / .18);
    --glass-blur: blur(18px) saturate(180%);
    --glass-radius: 20px;
    /* the panel's left and right edges: 20px outside the content's lines, never nearer the window than 8px */
    --glass-inset: max(8px, calc((100% - min(100% - 2 * var(--gut), var(--container))) / 2 - 20px));
    top: 8px; height: calc(var(--nav) - 4px);
    background: transparent; border-bottom: 0;
  }
  @media (max-width: 639px) { .nav { height: var(--nav); --glass-radius: 16px; } }
  .nav::before {
    content: ""; position: absolute; inset: 0 var(--glass-inset); z-index: -1; pointer-events: none;
    border-radius: var(--glass-radius); border: 1px solid var(--glass-edge); background: var(--glass);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .85), 0 2px 6px -2px rgb(15 23 42 / .08), 0 14px 36px -18px rgb(37 99 235 / .45);
  }
  .nav .btn--primary { box-shadow: 0 6px 18px -6px rgb(37 99 235 / .65); }

  @media (min-width: 1024px) {
    /* the words: a soft blue pill on hover, and the page you are on lit in the brand blue with a glowing bar under it */
    .nav__link { border-radius: 12px; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
    .nav__link::before { display: none; }
    .nav__link:hover, .nav__item:hover > .nav__link, .nav__item:focus-within > .nav__link { background: rgb(37 99 235 / .08); }
    .nav__link[aria-current="page"] {
      color: #1d4ed8; background: linear-gradient(180deg, rgb(37 99 235 / .17), rgb(37 99 235 / .07));
      box-shadow: inset 0 0 0 1px rgb(37 99 235 / .2), 0 6px 16px -8px rgb(37 99 235 / .55);
    }
    .nav__link[aria-current="page"]::after {
      left: 50%; right: auto; width: 18px; bottom: -6px; height: 3px; transform: translateX(-50%);
      background: #2563eb; box-shadow: 0 0 10px 1px rgb(37 99 235 / .75);
    }
    /* the menus that drop from it: their own floating panel of the same glass, a little more solid so the words read */
    .nav__menu {
      left: var(--glass-inset); right: var(--glass-inset); top: calc(100% + 8px);
      border: 1px solid var(--glass-edge); border-radius: var(--glass-radius);
      background: var(--glass-solid); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
      box-shadow: inset 0 1px 0 rgb(255 255 255 / .85), 0 24px 48px -24px rgb(37 99 235 / .4);
    }
    /* an invisible bridge over the 8px gap, so the menu stays open as the pointer moves down into it */
    .nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  }

  @media (max-width: 1023px) {
    /* the phone and tablet menu: a second floating panel under the bar, over a dimmed page */
    .nav.is-open::after { content: ""; position: fixed; inset: 0; z-index: -2; background: rgb(15 23 42 / .3); }
    .nav.is-open .nav__links {
      top: calc(8px + var(--nav) + 4px); left: 8px; right: 8px; bottom: 8px;
      padding-inline: calc(var(--gut) - 8px);
      border: 1px solid var(--glass-edge); border-radius: var(--glass-radius); background: var(--glass-solid);
      -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
      box-shadow: 0 24px 48px -24px rgb(37 99 235 / .4);
    }
    .nav.is-open .nav__actions {
      left: 9px; right: 9px; bottom: 9px; padding-inline: calc(var(--gut) - 9px);
      border-radius: 0 0 calc(var(--glass-radius) - 1px) calc(var(--glass-radius) - 1px); background: var(--glass-solid);
      border-top-color: var(--glass-edge);
    }
  }

  /* no blur support, or the visitor asked for less transparency: the panels go solid in the same pale blue */
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav { --glass: #e8f0fe; --glass-solid: #eef4ff; }
  }
  @media (prefers-reduced-transparency: reduce) {
    .nav { --glass: #e8f0fe; --glass-solid: #eef4ff; --glass-blur: none; }
  }

  /* no pause buttons on the moving mock-ups and backgrounds: the kit's scripts still add them, this hides every one
     (and the room a card title keeps beside one). base.css is linked after this file, hence !important. */
  .loop-pause, button.ui-pause.ui-pause, button.loop-pause { display: none !important; }
  .ui-pause-beside { padding-right: 0 !important; }

  /* inbox lists: the channel shows as its app icon before the message (a line icon for website, call, SMS and email) */
  .ui-win__sub .ui-win__ch { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
  .ui-win__ch--line { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
