/* ==========================================================================
   crystal-ai.us: Clearer Flow (2026-09)
   One stylesheet for every page. No build step.

   The custom properties below are design/tokens.json (color.light,
   color.darkSection, type, layout, radius, glass, motion), plus a few values
   derived from them, marked as such. The rest of the file uses only these.
   ========================================================================== */

:root {
  /* color.light */
  --canvas: #f6f7f9;
  --surface: #ffffff;
  --text: #202126;
  --text-secondary: #6e707a;
  --text-large: #80828d;          /* large text only: 3.8:1 on white */
  --line: #dfe1e7;
  --line-soft: #eceef2;
  --accent: #6054b7;
  --accent-soft: #eeecf8;
  --accent-strong: #4f4596;
  --eyebrow: #6e6784;
  --button: #25262c;
  --button-hover: #45424f;
  --button-text: #ffffff;
  --consult: #635571;
  --consult-hover: #756482;
  --focus: #796cdb;
  --headline-gradient: linear-gradient(95deg, #5c616c 10%, #77758c 62%, #8f7cba);
  --done: #2f7d5b;
  --done-soft: #e6f2eb;
  --waiting: #94580f;
  --waiting-soft: #f7eedf;
  --problem: #b3372f;
  --problem-soft: #f8e6e4;

  /* color.darkSection */
  --dark-bg: #141519;
  --dark-surface: #202128;
  --dark-line: #3f3e4b;
  --dark-text: #f6f7f9;
  --dark-text-secondary: #a0a0ae;
  --dark-accent: #c3b4f0;
  --dark-eyebrow: #9694a7;

  /* color.dark (Lattice's dark theme): the homepage workflow graphic's card surfaces and statuses */
  --dark-raised: #24252c;
  --dark-done: #6fcf9c;
  --dark-waiting: #e7b567;

  /* wordmark (tokens.json: wordmark), option C on light */
  --wordmark-first: #202126;
  --wordmark-second: #6054b7;
  --wordmark-sparkle: #b3a6f2;
  --wordmark-first-dark: #f6f7f9;
  --wordmark-second-dark: #b3a6f2;
  --wordmark-sparkle-dark: #f6f7f9;

  /* latticeMark.tile */
  --lattice-tile-bg: linear-gradient(140deg, #ffffff, #ddd6ef);
  --lattice-tile-sparkle: #857592;

  /* type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --body-line-height: 1.55;
  --heading-weight: 600;
  --heading-tracking: -0.04em;
  --hero-tracking: -0.047em;
  --eyebrow-size: 12px;
  --eyebrow-weight: 600;
  --eyebrow-tracking: 0.16em;
  --hero-size: clamp(3.5rem, 7.1vw, 6.4rem);
  --hero-size-phone: clamp(3.1rem, 10.6vw, 4.8rem);
  --hero-size-narrow: clamp(2.3rem, 11.6vw, 2.65rem);
  --section-heading: clamp(2.6rem, 4.6vw, 4rem);
  --body: 17px;
  --body-phone: 16px;
  --body-wide: 18px;
  --label: 14px;
  --meta: 12px;
  --input: 16px;

  /* layout (Phone values apply below 760px) */
  --content-max: 1140px;
  --nav-max: 1296px;
  --gutter: 48px;
  --nav-height: 72px;
  --section-pad: clamp(96px, 8vw, 128px);

  /* radius */
  --radius-card: 27px;
  --radius-panel: 30px;
  --radius-system: 32px;
  --radius-input: 12px;
  --radius-pill: 999px;

  /* glass */
  --glass-nav-bg: rgba(250, 251, 253, 0.78);
  --glass-nav-filter: blur(24px) saturate(130%);
  --glass-nav-border: 1px solid rgba(0, 0, 0, 0.07);
  --glass-card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.36));
  --glass-card-border: 1px solid rgba(255, 255, 255, 0.96);
  --glass-card-shadow: 0 14px 55px #35314913, inset 0 1px 0 #ffffff;
  --glass-card-filter: blur(20px);
  --glass-panel-bg: linear-gradient(135deg, #ffffffb8, #ffffff75);
  --glass-panel-border: 1px solid #ffffff;
  --glass-panel-shadow: 0 20px 70px #5548640e;
  --glass-panel-filter: blur(25px);

  /* motion */
  --transition: 200ms;

  /* Derived from the tokens above */
  --accent-tint: rgba(96, 84, 183, 0.08);      /* accent at 8% */
  --accent-line: rgba(96, 84, 183, 0.22);      /* accent at 22% */
  --shadow-soft: 0 24px 65px rgba(57, 53, 75, 0.05);
  --shadow-lift: 0 10px 30px rgba(37, 38, 44, 0.16);
  --section-pad-phone: 64px;
  --gutter-tablet: 32px;
  --gutter-phone: 20px;
  --nav-height-phone: 65px;
  --radius-phone: 24px;
  --book-bar-height: 68px;
  --nav-link: #4d4f58;                          /* text-secondary, darkened: 4.9:1 on the glass bar over the dark section */
  --statement-label: #5d5775;                   /* eyebrow, darkened: 4.5:1 where the hero statements sit on the photo */
  --statement-text: #5f616b;                    /* text-secondary, darkened: the same */
  --statement-gradient: linear-gradient(95deg, #5c616c 10%, #6f6d86 62%, #7a6aa8);   /* headline-gradient, deepened: 3:1 on the photo */
  --statement-gradient-small: linear-gradient(95deg, #5c616c 10%, #66647c 62%, #6f5f9a);   /* deepened again for the phone size, which needs 4.5:1 */
}

@media (max-width: 1050px) {
  :root { --gutter: var(--gutter-tablet); }
}

@media (max-width: 759.98px) {
  :root {
    --gutter: var(--gutter-phone);
    --nav-height: var(--nav-height-phone);
    --section-pad: var(--section-pad-phone);
    --body: var(--body-phone);
  }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--body);
  line-height: var(--body-line-height);
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { height: auto; }

a { color: inherit; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: 1.12;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.section--dark :focus-visible { outline-color: var(--dark-accent); }

::selection { background: var(--accent-soft); color: var(--text); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--button);
  color: var(--button-text);
  font-size: var(--label);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

main:focus { outline: none; }

/* ---------- Layout ---------- */

.container {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--content-max);
  margin-inline: auto;
}

.section { padding-block: var(--section-pad); }

.section--dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}

/* ---------- Type ---------- */

.eyebrow {
  margin: 0 0 22px;
  font-size: var(--eyebrow-size);
  font-weight: var(--eyebrow-weight);
  letter-spacing: var(--eyebrow-tracking);
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.section--dark .eyebrow { color: var(--dark-eyebrow); }

.gradient-text {
  background: var(--headline-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quiet { color: var(--text-secondary); }
.section--dark .quiet { color: var(--dark-text-secondary); }

.lead {
  font-size: var(--body-wide);
  line-height: 1.55;
  color: var(--text-secondary);
}

.section--dark .lead { color: var(--dark-text-secondary); }

/* ---------- Section heading ---------- */

.section-heading { max-width: 980px; margin-bottom: 48px; }
.section-heading .lead { max-width: 760px; }
.section-heading h2 {
  font-size: var(--section-heading);
  line-height: 1.06;
  margin-bottom: 24px;
}
.section-heading h2:last-child { margin-bottom: 0; }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading--center .lead { max-width: 640px; margin-inline: auto; }

/* ---------- Buttons and links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: none; }

.button--dark { background: var(--button); color: var(--button-text); }
.button--dark:hover { background: var(--button-hover); }

.button--light { background: var(--surface); color: var(--text); border-color: var(--line); }
.button--light:hover { border-color: var(--text-secondary); }

.button--consult { background: var(--consult); color: var(--button-text); }
.button--consult:hover { background: var(--consult-hover); }

.section--dark .button--light { background: transparent; color: var(--dark-text); border-color: var(--dark-line); }

.button--small { min-height: 42px; padding: 9px 18px; font-size: 14px; }

.button[disabled],
.button[aria-disabled="true"] { opacity: 0.45; cursor: default; transform: none; }

.button[aria-busy="true"] { cursor: progress; }
.button[aria-busy="true"]::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}
.text-link:hover { color: var(--accent); }
.section--dark .text-link { color: var(--dark-text); }
.section--dark .text-link:hover { color: var(--dark-accent); }

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.inline-link:hover { color: var(--accent-strong); }

.arrow { display: inline-block; transition: transform var(--transition); }
.text-link:hover .arrow,
.button:hover .arrow { transform: translateX(2px); }

.icon { width: 1em; height: 1em; flex: none; }

/* ---------- Glass surfaces (only header, booking bar, panel, chat) ---------- */

.glass-panel {
  background: var(--glass-panel-bg);
  border: var(--glass-panel-border);
  box-shadow: var(--glass-panel-shadow);
  -webkit-backdrop-filter: var(--glass-panel-filter);
  backdrop-filter: var(--glass-panel-filter);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header,
  .book-bar,
  .glass-panel { background: var(--surface); }
}

/* ---------- Wordmark (design/wordmark.html, option C) ---------- */

.wordmark {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  text-decoration: none;
  color: var(--wordmark-first);
}
.wordmark .ai { font-weight: 400; color: var(--wordmark-second); }
/* margin, not gap: a flex gap would split "crystal" from "AI" */
.wordmark svg { width: 0.8em; height: 0.8em; fill: var(--wordmark-sparkle); flex: none; margin-left: 0.3em; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--glass-nav-bg);
  -webkit-backdrop-filter: var(--glass-nav-filter);
  backdrop-filter: var(--glass-nav-filter);
  border-bottom: var(--glass-nav-border);
}

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--nav-max);
  height: var(--nav-height);
  margin-inline: auto;
}

.site-header .wordmark { font-size: 26px; padding-block: 8px; }

.site-nav { display: flex; align-items: center; }

.site-nav__list { display: flex; align-items: center; gap: 30px; list-style: none; }

.site-nav__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--nav-link);
  text-decoration: none;
  transition: color var(--transition);
}

.site-nav__list a:hover { color: var(--text); }

.site-nav__list a[aria-current="page"],
.site-nav__list a.is-section { color: var(--text); font-weight: 600; }

.site-nav__list a[aria-current="page"]::after,
.site-nav__list a.is-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.site-nav__book { display: none; }

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
}

.menu-button__icon,
.menu-button__icon::before {
  display: block;
  width: 20px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--transition);
}
.menu-button__icon { position: relative; transform: translateY(-3.5px); }
.menu-button__icon::before { content: ""; position: absolute; top: 7px; left: 0; }
.site-header.is-open .menu-button__icon { transform: rotate(45deg); }
.site-header.is-open .menu-button__icon::before { transform: translateY(-7px) rotate(-90deg); }

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

/* Tablets and small laptops: the links move into the menu, the pill stays. */
@media (max-width: 1050px) {
  .menu-button { display: inline-flex; order: 3; }
  .site-header__cta { order: 2; margin-left: auto; }
  .site-header .wordmark { margin-right: auto; }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    padding: 8px var(--gutter) 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(37, 38, 44, 0.08);
  }
  .js .site-header.is-open .site-nav { display: block; }
  .js .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav__list a {
    display: flex;
    min-height: 52px;
    font-size: 17px;
    color: var(--text);
    border-bottom: 1px solid var(--line-soft);
  }
  .js .site-nav__list a[aria-current="page"]::after,
  .js .site-nav__list a.is-section::after { left: auto; right: 0; bottom: 50%; width: 6px; height: 6px; transform: translateY(50%); }

  /* Without JavaScript the links stay visible, wrapping under the wordmark. */
  html:not(.js) .menu-button { display: none; }
  html:not(.js) .site-header__bar { flex-wrap: wrap; height: auto; min-height: var(--nav-height); row-gap: 0; }
  html:not(.js) .site-nav { order: 4; flex-basis: 100%; padding-bottom: 8px; }
  html:not(.js) .site-nav__list { flex-wrap: wrap; gap: 4px 20px; }
}

/* Phones: wordmark and menu only; the pill moves to the bottom booking bar. */
@media (max-width: 759.98px) {
  .site-header .wordmark { font-size: 23px; }
  .site-header__cta { display: none; }
  .js .site-nav__book { display: flex; width: 100%; margin-top: 20px; }
  .js .site-nav { max-height: calc(100vh - var(--nav-height)); overflow-y: auto; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 56px 0 28px;
  font-size: 15px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: 40px 56px;
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--content-max);
  margin-inline: auto;
}

.site-footer__brand .wordmark { font-size: 24px; }
.site-footer__brand p { margin-top: 16px; max-width: 380px; color: var(--text-secondary); }
.site-footer__contact { line-height: 1.8; }
.site-footer a { text-decoration: none; transition: color var(--transition); }
.site-footer__contact a { color: var(--text); white-space: nowrap; }
.site-footer a:not(.button):hover { color: var(--accent); }

.site-footer__nav ul,
.site-footer__social { list-style: none; }
.site-footer__nav a,
.site-footer__start > a:not(.button),
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  font-size: 14px;
  color: var(--text-secondary);
}

.site-footer__start { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.site-footer__start .button { margin-bottom: 8px; }
.site-footer__social { margin-top: 6px; }

.site-footer__legal {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: var(--meta);
  color: var(--text-secondary);
}

@media (max-width: 1050px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 759.98px) {
  .site-footer { padding-top: 44px; }
  .site-footer__inner { gap: 28px 20px; }
}

@media (max-width: 479.98px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- Bottom booking bar (phones, every page except thanks.html) ---------- */

.book-bar { display: none; }

@media (max-width: 759.98px) {
  .book-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--glass-nav-bg);
    -webkit-backdrop-filter: var(--glass-nav-filter);
    backdrop-filter: var(--glass-nav-filter);
    border-top: var(--glass-nav-border);
    transition: transform var(--transition), visibility var(--transition);
  }
  .book-bar.is-hidden { transform: translateY(105%); visibility: hidden; }
  .book-bar__button { display: flex; width: 100%; gap: 10px; padding-inline: 16px; font-size: 15px; }
  .book-bar__icon { width: 18px; height: 18px; flex: none; }
  body:has(.book-bar) { padding-bottom: calc(var(--book-bar-height) + env(safe-area-inset-bottom)); }
}

@media (max-width: 369.98px) {
  .js .site-nav__book { padding-inline: 12px; font-size: 14px; letter-spacing: -0.01em; }
  .book-bar__icon { display: none; }
  .book-bar__button { padding-inline: 10px; font-size: 14px; letter-spacing: -0.01em; }
}

/* ==========================================================================
   Homepage
   ========================================================================== */

/* ---------- Hero ---------- */

.hero { background: var(--canvas); overflow: hidden; }

.hero__copy {
  position: relative;
  z-index: 2;
  padding: 64px 24px 0;
  text-align: center;
}

.hero .eyebrow { margin-bottom: 20px; }

.hero-title {
  font-size: var(--hero-size);
  line-height: 1.02;
  letter-spacing: var(--hero-tracking);
  margin: 0 auto 24px;
}

.hero-subtitle {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: var(--body-wide);
  line-height: 1.5;
  color: var(--text-secondary);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
}

/* The crystal's box lives in custom properties so the statements can be placed
   against the glass itself. On narrower laptops the crystal is drawn a little
   smaller, to leave room for a statement on either side. */
.hero__stage {
  --art-w: clamp(770px, calc(100vw - 410px), 950px);
  --art-h: calc(var(--art-w) * 0.621);
  --art-top: -22px;
  position: relative;
  height: 480px;
  max-width: 1280px;
  margin: 8px auto 0;
}

.hero__art {
  position: absolute;
  top: var(--art-top);
  left: 50%;
  width: var(--art-w);
  height: var(--art-h);
  max-width: none;
  object-fit: cover;
  transform: translateX(-50%);
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent), linear-gradient(to right, transparent, #000 13%, #000 87%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent), linear-gradient(to right, transparent, #000 13%, #000 87%, transparent);
  mask-composite: intersect;
}

/* The photo's own frame (3:2, uncropped): a point in % of it is a point in the photo. */
.hero__map {
  position: absolute;
  left: 50%;
  top: calc(var(--art-top) + var(--art-h) / 2);
  width: var(--art-w);
  aspect-ratio: 3 / 2;
  transform: translate(-50%, -50%);
}

/* Two statements, one either side of the glass, level with the crossing */
.hero-statement {
  position: absolute;
  top: 44.9%;
  width: max-content;
  max-width: 205px;
  transform: translateY(-50%);
  font-size: var(--label);
  line-height: 1.45;
  color: var(--statement-text);
}
.hero-statement--in { right: calc(87.5% + 28px); text-align: right; }   /* the left loop starts at x 192 of 1536 */
.hero-statement--out { left: calc(90% + 28px); }                        /* the right loop ends at x 1382 */

.hero-statement__label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--statement-label);
}
.hero-statement--in .hero-statement__label { justify-content: flex-end; }
.hero-statement__mark { flex: none; width: 12px; height: 12px; fill: var(--accent); }

.hero-statement__title {
  display: block;
  max-width: 7em;
  margin: 10px 0 12px;
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
  background: var(--statement-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-statement--in .hero-statement__title { margin-left: auto; }
.hero-statement__text { display: block; }
.hero-statement__flow { display: flex; gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.hero-statement__flow li { position: relative; }
.hero-statement__flow li + li::before {
  content: "\2192";
  content: "\2192" / "";
  position: absolute;
  left: -18px;
  color: var(--text-large);
}

.float-card__label {
  display: block;
  font-size: var(--meta);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.mini-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--eyebrow);
}
.mini-icon svg { width: 18px; height: 18px; }

.hero__caption {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: var(--meta);
  color: var(--text-secondary);
}

.hero__facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
  font-size: var(--label);
  color: var(--text-secondary);
}
.hero__facts strong { font-weight: 500; color: var(--text); }
.hero__facts .text-link { font-size: var(--label); white-space: nowrap; }

@media (min-width: 1500px) {
  .hero__copy { padding-top: 80px; }
  .hero__stage { --art-w: 1000px; --art-h: 650px; --art-top: -40px; height: 530px; }
}

/* Below 1180px there's no room beside the glass: the statements sit under it,
   lined up with the two loops, and never closer to the edge than the gutter. */
@media (max-width: 1179.98px) {
  .hero__stage { --art-w: 800px; --art-h: 500px; --art-top: -20px; height: 548px; }
  .hero__map { display: contents; }
  .hero-statement { top: calc(var(--art-top) + var(--art-h) / 2 + var(--art-w) * 0.1953); max-width: 240px; transform: none; isolation: isolate; }
  .hero-statement::before {   /* a soft haze that quiets the floor reflections behind the words */
    content: "";
    position: absolute;
    inset: -8px -14px;
    z-index: -1;
    border-radius: 24px;
    background: var(--canvas);
    opacity: 0.85;
    filter: blur(10px);
  }
  .hero-statement--in { right: auto; left: max(var(--gutter), calc(50% - var(--art-w) * 0.2891)); text-align: left; }
  .hero-statement--out { left: auto; right: max(var(--gutter), calc(50% - var(--art-w) * 0.2917)); text-align: right; }
  .hero-statement--in .hero-statement__label { justify-content: flex-start; }
  .hero-statement--out .hero-statement__label,
  .hero-statement--out .hero-statement__flow { justify-content: flex-end; }
  .hero-statement__title { margin: 6px 0 8px; font-size: 26px; }
  .hero-statement--in .hero-statement__title { margin-left: 0; }
  .hero-statement--out .hero-statement__title { margin-left: auto; }
}

@media (max-width: 759.98px) {
  .hero__copy { padding: 44px var(--gutter) 0; }
  .hero .eyebrow { letter-spacing: 0.12em; }
  .hero-title { font-size: var(--hero-size-phone); line-height: 1.06; letter-spacing: -0.048em; margin-bottom: 20px; }
  .hero-subtitle { max-width: 360px; font-size: 16px; margin-bottom: 22px; }
  .hero__actions { flex-direction: column; gap: 6px; }
  .hero__actions .button { width: 100%; max-width: 360px; }
  .hero__stage { --art-w: 600px; --art-h: 390px; --art-top: -34px; height: 407px; margin-top: 0; }
  .hero-statement { max-width: calc(50% - var(--gutter) - 8px); font-size: 13px; line-height: 1.4; }
  .hero-statement__label { gap: 6px; font-size: 10px; letter-spacing: 0.12em; }
  .hero-statement__mark { width: 10px; height: 10px; }
  .hero-statement__title { font-size: 20px; background-image: var(--statement-gradient-small); }
  .hero-statement__flow { gap: 0 20px; }
  .hero-statement__flow li + li::before { left: -16px; }
  .mini-icon { width: 30px; height: 30px; border-radius: 9px; }
  .mini-icon svg { width: 15px; height: 15px; }
  .hero__caption { bottom: 6px; }
  .hero__facts { flex-direction: column; justify-content: center; text-align: center; gap: 4px; padding: 18px 0 10px; }
}

@media (max-width: 369.98px) {
  .hero-title { font-size: var(--hero-size-narrow); }
  .hero__stage { height: 425px; }
  .hero-statement__flow { gap: 0 16px; font-size: 11px; }
  .hero-statement__flow li + li::before { left: -13px; }
}

/* ---------- The workflow (dark demonstration section) ---------- */
/* An illustrative graphic, not a video: it loops through its steps by itself
   (script.js). --flow-step matches STEP_MS there. */

.film { --flow-step: 3s; padding: 104px 0 80px; }

.flow {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--content-max);
  margin: 0 auto;
}

.flow__stage {
  position: relative;
  overflow: hidden;
  padding: 60px 56px 56px;
  border: 1px solid var(--dark-line);
  border-radius: 25px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(195, 180, 240, 0.1), transparent 62%),   /* dark accent at 10% */
    var(--dark-surface);
}

.flow__titles { display: grid; margin-bottom: 30px; text-align: center; }
.flow__title {
  grid-area: 1 / 1;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--dark-text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 300ms ease;
}
.flow__title span {
  display: block;
  max-width: 520px;
  margin: 14px auto 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--dark-text-secondary);
}
.flow[data-step="1"] [data-flow-title="1"],
.flow[data-step="2"] [data-flow-title="2"],
.flow[data-step="3"] [data-flow-title="3"] { opacity: 1; transform: none; }

/* The journey: one inquiry travels a line of light from your website, through
   your systems, to your team. On wide screens the stops sit at 18%, 50% and 82%
   of the field and the line runs from 6% to 94%, so along the line they fall at
   13.6%, 50% and 86.4%. Narrower screens keep the card still under the line. */
.journey { position: relative; height: 320px; --stop: 18%; --glow: 13.6%; }
.flow[data-step="2"] .journey { --stop: 50%; --glow: 50%; }
.flow[data-step="3"] .journey { --stop: 82%; --glow: 86.4%; }

.journey__track { position: absolute; inset: 0; }
.journey__line { position: absolute; left: 6%; right: 6%; top: 236px; height: 3px; border-radius: 3px; }
.journey__line::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #5c616c, #8f7cba 55%, var(--dark-accent));   /* the headline gradient */
  opacity: 0.4;
}
.journey__glow {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--glow);
  border-radius: inherit;
  background: linear-gradient(90deg, #8f7cba, var(--dark-accent));
  box-shadow: 0 0 18px rgba(195, 180, 240, 0.7);
  transition: width 700ms cubic-bezier(0.5, 0, 0.3, 1);
}
.journey__sent {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 86.4%;
  right: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dark-accent), var(--dark-done));
  transform: scaleX(0);
  transform-origin: left;
}
.journey__pulse {
  position: absolute;
  top: 50%;
  left: var(--glow);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(195, 180, 240, 0.28), 0 0 22px rgba(195, 180, 240, 0.9);
  transition: left 700ms cubic-bezier(0.5, 0, 0.3, 1);
}

.journey__stops { list-style: none; }
.journey__stop {
  position: absolute;
  top: 228px;
  width: 180px;
  margin-left: -90px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  color: var(--dark-text-secondary);
}
.journey__stop:nth-child(1) { left: 18%; }
.journey__stop:nth-child(2) { left: 50%; }
.journey__stop:nth-child(3) { left: 82%; }
.journey__stop b { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 600; color: var(--dark-text); }
.journey__node {
  display: block;
  width: 19px;
  height: 19px;
  margin: 0 auto 14px;
  border: 2px solid var(--dark-line);
  border-radius: 50%;
  background: var(--dark-surface);
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.journey__stop:nth-child(1) .journey__node,
.flow[data-step="2"] .journey__stop:nth-child(2) .journey__node,
.flow[data-step="3"] .journey__stop .journey__node {
  border-color: var(--dark-accent);
  background: var(--dark-accent);
  box-shadow: 0 0 0 6px rgba(195, 180, 240, 0.16);
}

.journey__card {
  position: absolute;
  top: 34px;
  left: var(--stop);
  width: 264px;
  margin-left: -132px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  transition: left 700ms cubic-bezier(0.5, 0, 0.3, 1);
}
/* Back to the start: the card appears at the first stop instead of travelling back */
.flow[data-step="1"] .journey__card { transition: none; animation: journey-in 400ms ease both; }
.journey__kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dark-eyebrow); }
.journey__what { margin: 4px 0 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--dark-text); }
.journey__status { display: grid; }
.journey__pill {
  grid-area: 1 / 1;
  justify-self: start;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(195, 180, 240, 0.16);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--dark-accent);
  opacity: 0;
  transition: opacity 200ms ease;
}
.journey__pill--wait { background: rgba(231, 181, 103, 0.16); color: var(--dark-waiting); }
.journey__pill--ok { background: rgba(111, 207, 156, 0.16); color: var(--dark-done); }
.flow[data-step="1"] [data-pill="1"],
.flow[data-step="2"] [data-pill="2"],
.flow[data-step="3"] [data-pill="3"] { opacity: 1; }

/* What your systems did, around the card at the middle stop */
.journey__chips { list-style: none; }
.journey__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  background: var(--dark-raised);
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--dark-text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.journey__chip svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--dark-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.journey__chip:nth-child(1) { top: 4px; right: calc(100% + 18px); }
.journey__chip:nth-child(2) { top: 36px; left: calc(100% + 18px); }
.journey__chip:nth-child(3) { top: 68px; right: calc(100% + 18px); }
.flow[data-step="2"] .journey__chip { opacity: 1; transform: none; }

/* The approval, at the last stop */
.journey__actions {
  display: flex;
  gap: 8px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 250ms ease, margin-top 250ms ease, opacity 250ms ease;
}
.flow[data-step="3"] .journey__actions { max-height: 40px; margin-top: 12px; opacity: 1; }
.journey__approve,
.journey__edit { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--radius-pill); font-size: 13px; }
.journey__approve { background: var(--dark-text); font-weight: 600; color: var(--dark-bg); }
.journey__edit { border: 1px solid var(--dark-line); color: var(--dark-text); }

/* While it plays: the chips arrive one by one, then the approval is pressed,
   the status turns to sent, and the light runs out past the last stop */
.flow.is-playing[data-step="2"] .journey__chip { animation: journey-chip 250ms ease both; }
.flow.is-playing[data-step="2"] .journey__chip:nth-child(1) { animation-delay: 450ms; }
.flow.is-playing[data-step="2"] .journey__chip:nth-child(2) { animation-delay: 750ms; }
.flow.is-playing[data-step="2"] .journey__chip:nth-child(3) { animation-delay: 1050ms; }
.flow.is-playing[data-step="3"] .journey__approve { animation: journey-press var(--flow-step) both; }
.flow.is-playing[data-step="3"] [data-pill="3"] { animation: journey-wait var(--flow-step) both; }
.flow.is-playing[data-step="3"] [data-pill="4"] { animation: journey-ok var(--flow-step) both; }
.flow.is-playing[data-step="3"] .journey__sent { animation: journey-sent var(--flow-step) linear both; }
.flow.is-held .journey__card,
.flow.is-held .journey__chip,
.flow.is-held .journey__pill,
.flow.is-held .journey__approve,
.flow.is-held .journey__sent { animation-play-state: paused; }

@keyframes journey-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes journey-chip { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes journey-chip-lit { from { opacity: 0.45; } to { opacity: 1; } }
@keyframes journey-press {
  0%, 62% { transform: none; box-shadow: 0 0 0 0 rgba(195, 180, 240, 0); }
  66% { transform: scale(0.94); box-shadow: 0 0 0 6px rgba(195, 180, 240, 0.35); }
  72%, 100% { transform: none; box-shadow: 0 0 0 0 rgba(195, 180, 240, 0); }
}
@keyframes journey-wait { 0%, 66% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes journey-ok { 0%, 66% { opacity: 0; } 70%, 100% { opacity: 1; } }
@keyframes journey-sent { 0%, 68% { transform: scaleX(0); } 88%, 100% { transform: scaleX(1); } }

.flow__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 0 6px;
  font-size: var(--meta);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dark-text-secondary);
}
.flow__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dark-text);
  transition: border-color var(--transition);
}
.flow__toggle:hover { border-color: var(--dark-text-secondary); }
.flow__toggle svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.flow__icon-pause { fill: none; }
.flow__icon-play { fill: currentColor; stroke: none; display: none; }
.flow__toggle[data-mode="play"] .flow__icon-pause { display: none; }
.flow__toggle[data-mode="play"] .flow__icon-play { display: inline; }
html:not(.js) .flow__toggle { display: none; }

.chapters {
  width: calc(100% - 2 * var(--gutter));
  max-width: 1060px;
  margin: 36px auto 0;
}

.chapters__tabs { display: flex; gap: 28px; }

.chapters__tabs button {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 20px 0 12px;
  border: 0;
  border-top: 2px solid var(--dark-line);
  background: transparent;
  color: var(--dark-text-secondary);
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
  transition: color var(--transition), border-color var(--transition);
}
.chapters__tabs button:hover { color: var(--dark-text); }
.chapters__tabs button span { font-size: var(--meta); color: var(--dark-eyebrow); }
.chapters__tabs button[aria-selected="true"] { border-color: var(--dark-accent); color: var(--dark-text); }
.chapters__tabs button[aria-selected="true"] span { color: var(--dark-accent); }

.chapters__panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  margin-top: 28px;
  min-height: 96px;
}
.chapters__panel h3 { font-size: 27px; line-height: 1.2; letter-spacing: -0.035em; }
.chapters__panel p { font-size: 16px; color: var(--dark-text-secondary); }

html:not(.js) .chapters__tabs { display: none; }
html:not(.js) .chapters__panel { padding-top: 24px; border-top: 1px solid var(--dark-line); }

@media (max-width: 1050px) {
  .flow__stage { padding: 44px 28px 36px; }
  .journey { height: auto; display: flex; flex-direction: column; align-items: center; gap: 26px; --glow: 13%; }
  .flow[data-step="3"] .journey { --glow: 87%; }
  .journey__track { position: relative; inset: auto; width: 100%; height: 50px; }
  .journey__line { left: 4%; right: 4%; top: 8px; }
  .journey__sent { left: 87%; }
  .journey__stop { top: 0; width: 110px; margin-left: -55px; font-size: 12px; }
  .journey__stop:nth-child(1) { left: 16%; }
  .journey__stop:nth-child(3) { left: 84%; }
  .journey__stop b { font-size: 13px; }
  .journey__stop span:not(.journey__node) { display: none; }
  .journey__node { margin-bottom: 8px; }
  .journey__card { position: relative; top: auto; left: auto; width: 100%; max-width: 340px; margin-left: 0; transition: none; }
  /* The card stays still here, so the systems' work is a checklist in it: waiting
     at the first stop, done from the second. The approval row keeps its space. */
  .journey__chips { display: grid; gap: 6px; width: 100%; margin-top: 12px; }
  .journey__chip { position: static; padding: 6px 10px; font-size: 12.5px; opacity: 0.45; transform: none; }
  .flow[data-step="2"] .journey__chip,
  .flow[data-step="3"] .journey__chip { opacity: 1; }
  .flow.is-playing[data-step="2"] .journey__chip { animation-name: journey-chip-lit; }
  .journey__actions { max-height: 40px; margin-top: 12px; }
}

@media (max-width: 759.98px) {
  .film { padding: 64px 0 52px; }
  .film .section-heading { margin-bottom: 30px; }
  .film .section-heading h2 { font-size: 40px; }
  .film .lead { font-size: 16px; }
  .flow { width: calc(100% - 28px); }
  .flow__stage { padding: 32px 18px 26px; border-radius: 18px; }
  .flow__titles { margin-bottom: 24px; }
  .flow__title { font-size: 28px; }
  .flow__title span { font-size: 15px; }
  .journey__card { max-width: none; }
  .flow__caption { padding: 0 2px; letter-spacing: 0.08em; }
  .chapters { margin-top: 22px; }
  .chapters__tabs { gap: 12px; }
  .chapters__tabs button { display: block; padding: 12px 0 8px; font-size: 14px; }
  .chapters__tabs button span { display: block; margin-bottom: 6px; }
  .chapters__panel { grid-template-columns: 1fr; gap: 10px; margin-top: 22px; min-height: 150px; }
  .chapters__panel h3 { font-size: 24px; }
}

/* ---------- Lattice: diagram and private AI ---------- */

.lattice__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.lattice__copy h2 { font-size: clamp(2.3rem, 3.6vw, 3.3rem); line-height: 1.08; margin-bottom: 26px; }
.lattice__copy p:not(.eyebrow) { max-width: 460px; color: var(--text-secondary); }
.lattice__copy p:not(.eyebrow) + p { margin-top: 14px; }

.system-panel {
  padding: 44px 30px 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-system);
  background: radial-gradient(ellipse at 80% 0%, var(--accent-tint), transparent 70%), linear-gradient(125deg, var(--surface), var(--canvas));
  box-shadow: var(--shadow-soft);
}

.system-top { display: flex; align-items: center; justify-content: center; gap: 18px; }
.system-top h3 { margin-top: 6px; font-size: 33px; letter-spacing: -0.035em; }
.system-top .float-card__label { font-size: var(--meta); }

.lattice-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 76px;
  height: 76px;
  border: 1px solid #ffffff;
  border-radius: 23px;
  background: var(--lattice-tile-bg);
  box-shadow: 0 8px 25px rgba(101, 85, 122, 0.07);
  color: var(--lattice-tile-sparkle);
}
.lattice-mark svg { width: 38px; height: 38px; fill: currentColor; }

.system-line { width: 1px; height: 36px; margin: 0 auto; background: var(--accent-line); }

.system-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--accent-line);
  list-style: none;
}

.system-group { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.system-group > strong { font-size: var(--label); font-weight: 600; }

.app-symbol {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}
.app-symbol svg { width: 22px; height: 22px; }
.app-symbol--customers { color: var(--waiting); }
.app-symbol--operations { color: var(--accent); }
.app-symbol--finances { color: var(--done); }

.tool-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; }
.tool-chips a,
.tool-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}
.tool-chips a { color: var(--text); border-color: var(--accent-line); }
.tool-chips a:hover { border-color: var(--accent); color: var(--accent); }

.system-foot { margin-top: 26px; text-align: center; font-size: var(--label); color: var(--text-secondary); }
.system-foot a { color: var(--text); font-weight: 500; text-decoration: none; }
.system-foot a:hover { color: var(--accent); }

.private-ai {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 64px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.private-ai .mini-icon { width: 44px; height: 44px; }
.private-ai .mini-icon svg { width: 22px; height: 22px; }
.private-ai h3 { font-size: 21px; margin-bottom: 6px; }
.private-ai p { color: var(--text-secondary); }

@media (max-width: 1050px) {
  .lattice__layout { gap: 36px; }
  .system-panel { padding: 32px 18px 24px; }
}

@media (max-width: 859.98px) {
  .lattice__layout { grid-template-columns: 1fr; }
  .lattice__copy p:not(.eyebrow) { max-width: 100%; }
}

@media (max-width: 759.98px) {
  .lattice__copy h2 { font-size: 36px; }
  .system-panel { padding: 30px 18px 22px; border-radius: var(--radius-phone); }
  .lattice-mark { width: 62px; height: 62px; border-radius: 18px; }
  .lattice-mark svg { width: 30px; height: 30px; }
  .system-top h3 { font-size: 28px; }
  .system-groups { grid-template-columns: 1fr; gap: 18px; }
  .system-group {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: start;
    column-gap: 14px;
    row-gap: 8px;
    text-align: left;
  }
  .system-group .app-symbol { grid-row: span 2; }
  .system-group .tool-chips { justify-content: flex-start; }
  .private-ai { flex-direction: column; gap: 14px; margin-top: 40px; padding: 24px 22px; border-radius: var(--radius-phone); }
}

/* ---------- The build: problems, services, outcomes ---------- */

.build { background: var(--surface); }

.build__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}

.build__grid h3 { font-size: 22px; margin-bottom: 18px; }

.problems__list { list-style: none; border-top: 1px solid var(--line); }
.problems__list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text-secondary); }
.problems__list strong { display: block; margin-bottom: 2px; font-size: 16px; font-weight: 600; color: var(--text); }
.problems__close { margin-top: 18px; font-weight: 600; }

.svc-group + .svc-group { margin-top: 22px; }
.svc-group h4 {
  margin-bottom: 8px;
  font-size: var(--meta);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.svc-list { list-style: none; }
.svc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--canvas);
  text-decoration: none;
  transition: border-color var(--transition), background-color var(--transition);
}
.svc-list li + li { margin-top: 8px; }
a.svc-row:hover { border-color: var(--accent-line); background: var(--surface); }
.svc-row__name { font-weight: 600; font-size: 16px; }
.svc-row__desc { grid-column: 1; font-size: 14px; color: var(--text-secondary); }
.svc-row__arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--text-secondary); }
a.svc-row:hover .svc-row__arrow { color: var(--accent); }
.svc-row__flag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  font-size: var(--meta);
  font-weight: 600;
  color: var(--accent-strong);
  vertical-align: 2px;
}

.outcomes {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.outcomes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; }
.outcomes__kicker {
  display: block;
  margin-bottom: 8px;
  font-size: var(--meta);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.outcomes__grid p { font-size: 16px; }
.outcomes__note { margin-top: 20px; font-size: 13px; color: var(--text-secondary); }

.build__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin-top: 40px;
  font-size: 16px;
  color: var(--text-secondary);
}

@media (max-width: 959.98px) {
  .build__grid { grid-template-columns: 1fr; }
  .outcomes__grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Offer and builder ---------- */

.offer { background: var(--canvas); }

.offer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }

.price-card,
.people-card {
  padding: 40px 42px;
  border-radius: var(--radius-card);
  background: var(--surface);
}

.price-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 14px; }
.price-card__amount { font-size: 62px; font-weight: 500; letter-spacing: -0.06em; line-height: 1.05; }
.price-card__terms { font-size: 16px; color: var(--text-secondary); }
.price-card__summary { font-size: 16px; color: var(--text-secondary); }

.checklist { margin: 20px 0 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); list-style: none; }
.checklist li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; font-size: 16px; }
.checklist svg { width: 14px; height: 14px; flex: none; color: var(--accent); transform: translateY(1px); }

.price-card__more { font-size: 15px; color: var(--text-secondary); }
.price-card__close {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.people-card { background: linear-gradient(120deg, var(--accent-soft), var(--canvas)); }
.people-card h3 { font-size: 36px; line-height: 1.14; margin-bottom: 20px; }
.people-card p:not(.eyebrow) { font-size: 16px; color: var(--text-secondary); max-width: 440px; }
.people-card p:not(.eyebrow) + p { margin-top: 12px; }

.person { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.person img {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  background: var(--surface);
}
.person__name { display: block; font-size: 16px; font-weight: 600; }
.person__title { display: block; font-size: var(--label); color: var(--text-secondary); }
.person__link {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.person__link:hover { border-color: var(--accent); color: var(--accent); }
.person__link svg { width: 18px; height: 18px; }

.guarantee {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 26px;
  padding: 24px 28px;
  border-radius: var(--radius-card);
  background: var(--surface);
  font-size: 16px;
}
.guarantee strong { font-weight: 600; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
  list-style: none;
  font-size: 14px;
  color: var(--text-secondary);
}
.trust-strip li { padding-top: 14px; border-top: 1px solid var(--line); }

@media (max-width: 1050px) {
  .price-card, .people-card { padding: 34px 30px; }
  .people-card h3 { font-size: 30px; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 859.98px) {
  .offer__grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 759.98px) {
  .price-card, .people-card, .guarantee { padding: 28px 24px; border-radius: var(--radius-phone); }
  .price-card__amount { font-size: 54px; }
  .people-card h3 { font-size: 30px; }
  .trust-strip { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 369.98px) {
  .price-card__amount { font-size: 48px; }
}

/* ---------- Conversation (#contact) and the consultation panel ---------- */

.contact {
  background:
    radial-gradient(ellipse at 72% 75%, var(--accent-soft) 0%, transparent 52%),
    radial-gradient(ellipse at 20% 95%, var(--line-soft) 0%, transparent 45%),
    var(--surface);
}

.contact__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.contact__copy h2 { font-size: clamp(2.5rem, 4vw, 3.7rem); line-height: 1.06; margin-bottom: 24px; }
.contact__copy .lead { max-width: 460px; }
.contact__copy .lead + p { margin-top: 14px; max-width: 460px; color: var(--text-secondary); }

.contact-lines { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 28px; list-style: none; }
.contact-lines a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.contact-lines a:hover { color: var(--accent); }
.contact-lines svg { width: 16px; height: 16px; color: var(--eyebrow); }
.contact__where { margin-top: 6px; font-size: var(--label); color: var(--text-secondary); }
.contact__alt { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 460px; font-size: 15px; color: var(--text-secondary); }

.consult {
  padding: 30px;
  border-radius: var(--radius-panel);
}

.consult__switch {
  display: flex;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
}
.consult__switch button {
  flex: 1;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: var(--label);
  font-weight: 500;
  color: var(--text-secondary);
  transition: background-color var(--transition), color var(--transition);
}
.consult__switch button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(69, 48, 89, 0.06); }

.consult__title { font-size: 22px; letter-spacing: -0.03em; margin-bottom: 4px; }

.field { margin-top: 18px; }
.field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  font-size: var(--label);
  font-weight: 500;
  color: var(--text);
}
.field__hint { font-size: var(--meta); font-weight: 400; color: var(--text-secondary); }

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  background: var(--surface);
  font-size: var(--input);
  line-height: 1.5;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-large); }
.field input:focus-visible,
.field textarea:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--accent-line); }
.field [aria-invalid="true"] { border-color: var(--problem); }
.field__error { margin-top: 6px; font-size: var(--label); color: var(--problem); }

.consult__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.consult__submit { width: 100%; justify-content: space-between; margin-top: 22px; }
.consult__note { margin-top: 14px; font-size: 13px; text-align: center; color: var(--text-secondary); }
.consult__reach { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--label); text-align: center; color: var(--text-secondary); }
.consult__reach a { color: var(--text); font-weight: 500; text-decoration: none; white-space: nowrap; }
.consult__reach a:hover { color: var(--accent); }

.consult__status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-input);
  background: var(--problem-soft);
  font-size: 15px;
  color: var(--text);
}
.consult__status a { color: var(--text); font-weight: 600; }

.consult__fallback {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-input);
  background: var(--waiting-soft);
  font-size: 15px;
}
.consult__fallback p + p { margin-top: 8px; }
.consult__fallback a { color: var(--text); font-weight: 600; }

.consult__sent { padding: 28px 4px; text-align: center; }
.consult__sent:focus { outline: none; }
.consult__sent-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--done-soft);
  color: var(--done);
}
.consult__sent-mark svg { width: 24px; height: 24px; }
.consult__sent h3 { font-size: 26px; margin-bottom: 10px; }
.consult__sent p { color: var(--text-secondary); }

.consult__noscript { font-size: 16px; }
.consult__noscript a { color: var(--accent); font-weight: 600; }
html:not(.js) .consult__form,
html:not(.js) .consult__switch,
html:not(.js) .consult__reach { display: none; }

@media (max-width: 959.98px) {
  .contact__layout { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 759.98px) {
  .contact__copy h2 { font-size: 38px; }
  .consult { padding: 24px 20px; border-radius: var(--radius-phone); }
}

@media (max-width: 369.98px) {
  .consult { padding: 22px 15px; }
  .contact__copy h2 { font-size: 34px; }
}

/* ---------- Partners (#grow) ---------- */

.grow { background: var(--canvas); text-align: center; }
.grow .section-heading { margin-bottom: 0; }
.grow .lead { max-width: 680px; margin-inline: auto; }

/* ---------- FAQ accordion ---------- */

.faq { background: var(--surface); }
.faq-list { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { margin: 0; font-size: inherit; letter-spacing: normal; }
.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 64px;
  padding: 18px 0;
  border: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  text-align: left;
  color: var(--text);
}
.faq-trigger:hover { color: var(--accent); }
.faq-icon { width: 18px; height: 18px; flex: none; color: var(--text-secondary); transition: transform var(--transition); }
.faq-trigger[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }

.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--transition); }
.faq-answer.open { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; visibility: hidden; transition: visibility var(--transition); }
.faq-answer.open .faq-answer-inner { visibility: visible; }
.faq-answer-inner p { padding-bottom: 22px; max-width: 700px; font-size: 16px; color: var(--text-secondary); }
html:not(.js) .faq-answer { grid-template-rows: 1fr; }
html:not(.js) .faq-answer-inner { visibility: visible; }
html:not(.js) .faq-icon { display: none; }

.faq__cta { margin-top: 36px; text-align: center; }

@media (max-width: 759.98px) {
  .faq-trigger { font-size: 17px; }
}

/* ---------- Demo chat (homepage) ---------- */

.chat { position: fixed; right: 24px; bottom: 24px; z-index: 36; }

.chat__toggle {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--button);
  color: var(--dark-accent);
  box-shadow: var(--shadow-lift);
  transition: background-color var(--transition), transform var(--transition), opacity var(--transition), visibility var(--transition);
}
.chat__toggle:hover { background: var(--button-hover); transform: translateY(-1px); }
.chat__toggle svg { width: 24px; height: 24px; fill: currentColor; }
.chat.is-tucked .chat__toggle { opacity: 0; visibility: hidden; }
html:not(.js) .chat { display: none; }

.chat__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 48px));
  height: min(560px, calc(100vh - 150px));
  overflow: hidden;
  border-radius: 24px;
}

.chat__header { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 20px; }
.chat__header > div { flex: 1; }
.chat__title { font-size: 16px; letter-spacing: -0.01em; }
.chat__sub { font-size: var(--meta); color: var(--text-secondary); }
.chat__badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  font-size: var(--meta);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
  vertical-align: 1px;
}
.chat__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
}
.chat__close:hover { background: var(--accent-tint); color: var(--text); }
.chat__close svg { width: 18px; height: 18px; }

.chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.chat-message { display: flex; margin-bottom: 12px; }
.chat-message .message-content {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
}
.bot-message .message-content { background: var(--canvas); border-top-left-radius: 6px; }
.user-message { justify-content: flex-end; }
.user-message .message-content { background: var(--button); color: var(--button-text); border-top-right-radius: 6px; }
.message-content a { color: var(--accent); font-weight: 500; }
.message-content strong { font-weight: 600; }

.suggested-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.suggested-chips .chip {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 14px;
  color: var(--text);
}
.suggested-chips .chip:hover { border-color: var(--accent); color: var(--accent); }

.typing-indicator { display: flex; gap: 4px; padding: 4px 2px; }
.typing-indicator span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-large); animation: typing 1.2s infinite ease-in-out; }
.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat__input { display: flex; gap: 8px; padding: 12px; }
.chat__input input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: var(--input);
}
.chat__input input:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--accent-line); }
.chat__send {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--button);
  color: var(--button-text);
}
.chat__send:hover { background: var(--button-hover); }
.chat__send svg { width: 18px; height: 18px; }

@media (max-width: 759.98px) {
  /* above the bottom booking bar */
  .chat { right: 16px; bottom: calc(var(--book-bar-height) + 12px + env(safe-area-inset-bottom)); }
  .chat__toggle { width: 52px; height: 52px; }
  .chat__panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--book-bar-height) + 12px + env(safe-area-inset-bottom));
    width: auto;
    height: min(520px, calc(100svh - var(--nav-height) - var(--book-bar-height) - 40px));
  }
}

/* ==========================================================================
   Subpages: services, industries, integrations, pricing
   ========================================================================== */

/* ---------- Page hero (no ribbon) ---------- */

.page-hero {
  padding: 48px 0 72px;
  background:
    radial-gradient(ellipse at 85% 0%, var(--accent-tint), transparent 55%),
    var(--canvas);
}

.page-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 18px;
  font-size: var(--label);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.page-hero__back:hover { color: var(--accent); }
.page-hero__back svg { width: 16px; height: 16px; }

.page-hero h1 {
  max-width: 940px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 5.4vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: var(--hero-tracking);
}
.page-hero .lead { max-width: 740px; }
.page-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 32px; }

@media (max-width: 759.98px) {
  .page-hero { padding: 28px 0 52px; }
  .page-hero h1 { font-size: clamp(2.3rem, 9.6vw, 3.2rem); line-height: 1.06; letter-spacing: -0.045em; }
  .page-hero .lead { font-size: 17px; }
  .page-hero__actions { flex-direction: column; align-items: stretch; }
  .page-hero__actions .button { width: 100%; }
}

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

.section--tight { padding-block: clamp(64px, 6vw, 92px); }
.section--surface { background: var(--surface); }
.section--canvas { background: var(--canvas); }

.block-heading { max-width: 760px; margin-bottom: 30px; }
.block-heading h2 { font-size: clamp(1.9rem, 3.3vw, 2.75rem); line-height: 1.1; }
.block-heading h2 + .lead,
.block-heading h2 + p { margin-top: 14px; }
.block-heading .lead { font-size: var(--body); }

.prose { max-width: 740px; }
.prose p { color: var(--text); }
.prose p + p { margin-top: 16px; }
.prose strong { font-weight: 600; }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.split .block-heading { margin-bottom: 0; }
.split .block-heading + .prose { margin-top: 18px; }
.block-heading + .faq-list { margin-inline: 0; }

@media (max-width: 959.98px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Cards ---------- */

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; }
.card {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.section--surface .card { background: var(--canvas); border-color: var(--line-soft); }
.card h3 { margin-bottom: 8px; font-size: 18px; letter-spacing: -0.02em; line-height: 1.3; }
.card p { font-size: 16px; color: var(--text-secondary); }

@media (max-width: 759.98px) {
  .card-grid { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 20px 20px 22px; border-radius: 18px; }
}

/* ---------- A representative workflow ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
  list-style: none;
}
.steps li {
  position: relative;
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.steps li + li::before {
  content: "";
  position: absolute;
  top: 36px;
  left: -19px;
  width: 20px;
  height: 1px;
  background: var(--accent-line);
}
.steps__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-strong);
}
.steps strong { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.steps p { font-size: 15px; color: var(--text-secondary); }
.steps li.steps__person { border-color: var(--accent-line); background: linear-gradient(140deg, var(--surface), var(--accent-soft)); }
.steps__label { margin-top: 14px; font-size: var(--meta); color: var(--text-secondary); }

@media (max-width: 959.98px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(odd)::before { content: none; }
}

@media (max-width: 559.98px) {
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .steps li + li::before { content: ""; top: -13px; left: 34px; width: 1px; height: 12px; }
  .steps li:nth-child(odd)::before { content: ""; }
  .steps li:first-child::before { content: none; }
}

/* ---------- Tick lists, chips, notes ---------- */

.ticks { display: grid; gap: 12px; max-width: 820px; list-style: none; }
.ticks li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; }
.ticks svg { width: 15px; height: 15px; flex: none; color: var(--accent); transform: translateY(2px); }

@media (max-width: 759.98px) {
  .ticks li { font-size: 16px; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; }
.chips li {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
}

.decides {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 26px 28px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-card);
  background: linear-gradient(140deg, var(--surface), var(--accent-soft));
}
.decides h3 { margin-bottom: 10px; font-size: 20px; }
.decides .ticks { gap: 8px; }
.decides .ticks li { font-size: 16px; }

@media (max-width: 759.98px) {
  .decides { grid-template-columns: 1fr; gap: 12px; padding: 22px 20px; border-radius: var(--radius-phone); }
}

/* ---------- The Lattice diagram for one system (integrations) ---------- */

.connect-panel {
  margin-top: 44px;
  padding: 34px 32px 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-system);
  background: radial-gradient(ellipse at 80% 0%, var(--accent-tint), transparent 70%), linear-gradient(125deg, var(--surface), var(--canvas));
  box-shadow: var(--shadow-soft);
}

.connect-top { display: flex; align-items: center; justify-content: center; gap: 16px; }
.connect-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  font-size: 17px;
  font-weight: 600;
}
.connect-tile .lattice-mark { width: 44px; height: 44px; border-radius: 14px; }
.connect-tile .lattice-mark svg { width: 22px; height: 22px; }
.connect-tile .app-symbol { width: 44px; height: 44px; background: var(--canvas); }
.connect-tile small { display: block; font-size: var(--meta); font-weight: 400; color: var(--text-secondary); }
.connect-link { display: flex; align-items: center; gap: 6px; color: var(--text-large); }
.connect-link svg { width: 28px; height: 28px; }

.connect-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--accent-line);
  list-style: none;
}
.connect-cols h3 {
  margin-bottom: 10px;
  font-size: var(--meta);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.connect-cols ul { display: grid; gap: 8px; list-style: none; }
.connect-cols li li { position: relative; padding-left: 16px; font-size: 15px; }
.connect-cols li li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-line);
}
.connect-cols .connect-cols__person li::before { background: var(--accent); }
.connect-note { margin-top: 22px; font-size: 14px; text-align: center; color: var(--text-secondary); }

@media (max-width: 859.98px) {
  .connect-cols { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 559.98px) {
  .connect-panel { padding: 26px 18px 22px; border-radius: var(--radius-phone); }
  .connect-top { flex-direction: column; gap: 8px; }
  .connect-link { transform: rotate(90deg); }
}

/* ---------- Callout ("A feature, not a product") ---------- */

.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  max-width: 820px;
  margin-bottom: 36px;
  padding: 22px 26px;
  border: 1px solid var(--accent-line);
  border-radius: 22px;
  background: linear-gradient(140deg, var(--surface), var(--accent-soft));
}
.callout h2,
.callout h3 { margin-bottom: 6px; font-size: 18px; letter-spacing: -0.02em; }
.callout p { font-size: 16px; color: var(--text-secondary); }
.callout .mini-icon { background: var(--surface); }
.callout .mini-icon svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }

@media (max-width: 759.98px) {
  .callout { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
}

/* ---------- Index pages (industries, integrations) ---------- */

.index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.index-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.index-card:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.index-card h2 { font-size: 22px; line-height: 1.2; letter-spacing: -0.03em; }
.index-card p { flex: 1; font-size: 16px; color: var(--text-secondary); }
.index-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 15px; font-weight: 500; color: var(--text); }
.index-card:hover .index-card__more { color: var(--accent); }

@media (max-width: 1050px) {
  .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 599.98px) {
  .index-grid { grid-template-columns: 1fr; gap: 12px; }
  .index-card { padding: 22px 20px; border-radius: 20px; }
}

/* ---------- Related links ---------- */

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; }
.related a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
}
.related a:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.related__kicker {
  font-size: var(--meta);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.related__title { font-size: 16px; font-weight: 600; line-height: 1.35; }

.related-heading { margin: 34px 0 12px; font-size: 18px; letter-spacing: -0.02em; }

@media (max-width: 959.98px) {
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 559.98px) {
  .related { grid-template-columns: 1fr; }
}

/* ---------- Closing section with the consultation panel ---------- */

.closing {
  background:
    radial-gradient(ellipse at 72% 75%, var(--accent-soft) 0%, transparent 52%),
    radial-gradient(ellipse at 20% 95%, var(--line-soft) 0%, transparent 45%),
    var(--surface);
}
.closing__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.closing__copy h2 { margin-bottom: 20px; font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.07; }
.closing__copy .lead { max-width: 460px; }
.closing__copy .button { margin-top: 28px; }
.closing__after { margin-top: 16px; text-align: center; font-size: 15px; color: var(--text-secondary); }

@media (max-width: 959.98px) {
  .closing__layout { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 759.98px) {
  .closing__copy h2 { font-size: 34px; }
  .closing__copy .button { width: 100%; }
}

/* ---------- Pricing ---------- */

.pricing-offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.price-card__meta { margin-bottom: 10px; font-size: 15px; color: var(--text-secondary); }
.price-card .button { margin-top: 8px; }

.ladder { display: grid; gap: 10px; list-style: none; }
.ladder li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.ladder__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent-soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-strong);
}
.ladder__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 4px; }
.ladder__head strong { font-size: 17px; font-weight: 600; }
.ladder__price { font-size: 15px; font-weight: 600; color: var(--accent-strong); white-space: nowrap; }
.ladder p { font-size: 15px; color: var(--text-secondary); }

.section--surface .price-card,
.section--surface .guarantee { background: var(--canvas); }
.section--surface .ladder li { background: var(--canvas); border-color: var(--line-soft); }

.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
.pair h2 { margin-bottom: 14px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; }
.pair p { color: var(--text-secondary); }
.pair p + p { margin-top: 14px; }
.pair strong { font-weight: 600; color: var(--text); }
.pair .card { padding: 30px 32px; }

@media (max-width: 859.98px) {
  .pricing-offer,
  .pair { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 759.98px) {
  .pair .card { padding: 24px 22px; }
}

/* ---------- Estimator (estimate.html): a working tool, so it opens on the form ---------- */

.tool {
  padding: 48px 0 var(--section-pad);
  background:
    radial-gradient(ellipse at 85% 0%, var(--accent-tint), transparent 55%),
    var(--canvas);
}

.tool__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas:
    "head panel"
    "presets panel"
    "scope panel";
  grid-template-rows: auto auto 1fr;
  gap: 0 64px;
  align-items: start;
}
.tool__head { grid-area: head; }
.tool__presets { grid-area: presets; margin-top: 30px; }
.tool__panel { grid-area: panel; }
.tool__scope {
  grid-area: scope;
  max-width: 520px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-secondary);
}
.tool__scope strong { font-weight: 600; color: var(--text); }

.tool__head h1 {
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 4.8vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: var(--hero-tracking);
}
.tool__head h1 { text-wrap: balance; }
.tool__label { margin-bottom: 12px; font-size: var(--label); font-weight: 500; }

.est-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.est-preset {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: var(--label);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  transition: border-color var(--transition), background-color var(--transition), color var(--transition);
}
.est-preset:hover { border-color: var(--accent); color: var(--accent-strong); }
.est-preset.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }

.est-card { padding: 30px; border-radius: var(--radius-panel); }
.est-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.est-card form > .est-row:first-child .field { margin-top: 0; }
.est-field textarea { min-height: 132px; }
.est-err-inline { display: none; margin-top: 6px; font-size: var(--label); color: var(--problem); }
.est-err-inline.show { display: block; }
.est-submit { width: 100%; justify-content: space-between; margin-top: 24px; }
.est-note { margin-top: 14px; font-size: 13px; text-align: center; color: var(--text-secondary); }
.est-text { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--label); text-align: center; color: var(--text-secondary); }
.est-alt { margin-top: 18px; font-size: 15px; text-align: center; color: var(--text-secondary); }
.est-text a,
.est-alt a { color: var(--text); font-weight: 600; }
.est-text a:hover,
.est-alt a:hover { color: var(--accent); }

.est-result { display: none; }
.est-result.show { display: block; }
.est-card form + .est-result.show { margin-top: 22px; }
.est-result h2 { margin-bottom: 12px; font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; }
#estResultMsg { color: var(--text-secondary); }
.est-result.err { padding: 20px 22px; border-radius: 20px; background: var(--problem-soft); }
.est-result.err #estResultMsg { color: var(--text); }
.est-range { margin: 4px 0 18px; padding: 20px 22px; border-radius: 20px; background: var(--accent-soft); }
.est-range-figure {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.est-range-timeline { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--accent-strong); }
.est-range-note { margin-top: 10px; font-size: var(--label); color: var(--text); }
.est-result__book { width: 100%; justify-content: space-between; margin-top: 22px; text-align: left; }
.est-result__book svg { width: 18px; height: 18px; }

@media (max-width: 959.98px) {
  .tool__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "presets" "panel" "scope";
    grid-template-rows: none;
  }
  .tool__presets { margin: 26px 0 28px; }
  .tool__scope { max-width: none; }
}

@media (max-width: 759.98px) {
  .tool { padding-top: 28px; }
  .tool__head h1 { font-size: clamp(2.3rem, 9.6vw, 3.2rem); line-height: 1.06; letter-spacing: -0.045em; }
  .tool__head .lead { font-size: 17px; }
  .est-card { padding: 24px 20px; border-radius: var(--radius-phone); }
  .est-row { grid-template-columns: minmax(0, 1fr); }
  .est-card form > .est-row:first-child .field + .field { margin-top: 18px; }
  .est-field textarea { min-height: 156px; }
}

/* ---------- Savings calculator (#roi on estimate.html) ---------- */

.roi .block-heading { max-width: 900px; }
.roi .block-heading h2 { text-wrap: balance; }
.roi .block-heading .lead { text-wrap: pretty; }

.roi-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--canvas);
  overflow: hidden;
}

.roi-controls { display: grid; gap: 28px; align-content: start; padding: 36px; }
.roi-field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
}
.roi-value { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--accent-strong); }

.roi-select-wrap { position: relative; }
.roi-select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 44px 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  background: var(--surface);
  font-size: var(--input);
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.roi-select:hover { border-color: var(--text-secondary); }
.roi-select:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--accent-line); }
.roi-select-wrap svg {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.roi-range {
  display: block;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.roi-range::-webkit-slider-runnable-track { height: 6px; border-radius: var(--radius-pill); background: var(--line); }
.roi-range::-moz-range-track { height: 6px; border-radius: var(--radius-pill); background: var(--line); }
.roi-range::-moz-range-progress { height: 6px; border-radius: var(--radius-pill); background: var(--accent); }
.roi-range::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(37, 38, 44, 0.25);
  -webkit-appearance: none;
  appearance: none;
}
.roi-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(37, 38, 44, 0.25);
}
.roi-range:focus-visible { border-radius: 8px; }
.roi-range-scale { display: flex; justify-content: space-between; margin-top: 4px; font-size: var(--meta); color: var(--text-secondary); }

.roi-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 20px;
  align-content: start;
  padding: 36px;
  border-left: 1px solid var(--line);
  background: var(--surface);
}
.roi-result { display: grid; gap: 6px; }
.roi-result-money { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.roi-result-value {
  font-size: clamp(2.2rem, 3.4vw, 2.9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.roi-result-money .roi-result-value { font-size: clamp(2.8rem, 4.8vw, 4rem); color: var(--accent-strong); }
.roi-result-label { font-size: var(--label); color: var(--text-secondary); }
.roi-assumption { grid-column: 1 / -1; display: flex; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.roi-assumption svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.roi-cta { grid-column: 1 / -1; justify-content: space-between; text-align: left; }
.roi-estimate-link { grid-column: 1 / -1; font-size: var(--label); text-align: center; color: var(--text-secondary); }

@media (max-width: 859.98px) {
  .roi-card { grid-template-columns: minmax(0, 1fr); }
  .roi-results { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 759.98px) {
  .roi-controls,
  .roi-results { padding: 26px 22px; }
  .roi-card { border-radius: var(--radius-phone); }
}

/* ---------- Thanks (thanks.html): no booking bar, no panel ---------- */

.thanks {
  padding: 56px 0 var(--section-pad);
  background:
    radial-gradient(ellipse at 50% 0%, var(--accent-tint), transparent 60%),
    var(--canvas);
}
.thanks__inner { max-width: 720px; text-align: center; }
.thanks__mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--done-soft);
  color: var(--done);
}
.thanks__mark svg { width: 28px; height: 28px; }
.thanks h1 { text-wrap: balance; margin-bottom: 20px; font-size: clamp(2.6rem, 5.4vw, 4.2rem); line-height: 1.04; letter-spacing: var(--hero-tracking); }
.thanks__inner > .lead { max-width: 600px; margin-inline: auto; }

.thanks-steps { display: grid; gap: 10px; margin-top: 40px; list-style: none; text-align: left; }
.thanks-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.thanks-steps__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent-soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-strong);
}
.thanks-steps p { padding-top: 5px; font-size: 16px; color: var(--text-secondary); }
.thanks-steps strong { font-weight: 600; color: var(--text); }

.thanks-docs {
  margin-top: 28px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  text-align: left;
}
.thanks-docs h2 { margin-bottom: 12px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; }
.thanks-docs p { color: var(--text-secondary); }
.thanks-docs ul { display: grid; gap: 6px; margin: 16px 0 24px; padding-left: 1.2rem; color: var(--text-secondary); }
.thanks-docs .button svg { width: 18px; height: 18px; }
.thanks-docs__note { margin-top: 16px; font-size: var(--label); }

.thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin-top: 36px; }

.thanks__reach { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.thanks__reach h2 {
  margin-bottom: 12px;
  font-size: var(--eyebrow-size);
  font-weight: var(--eyebrow-weight);
  letter-spacing: var(--eyebrow-tracking);
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.thanks__reach p { color: var(--text-secondary); }
.thanks__reach a { color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.thanks__reach a:hover { color: var(--accent); }

@media (max-width: 759.98px) {
  .thanks { padding-top: 32px; }
  .thanks h1 { font-size: clamp(2.3rem, 9.6vw, 3.2rem); line-height: 1.06; letter-spacing: -0.045em; }
  .thanks-steps li { gap: 14px; padding: 18px; }
  .thanks-docs { padding: 24px 20px; }
  .thanks__actions { flex-direction: column; }
  .thanks-docs .button,
  .thanks__actions .button { width: 100%; }
}

/* ---------- Blog index (blog.html) ---------- */

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--canvas);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.post-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: var(--meta);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.post-card__meta time { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; text-transform: none; color: var(--text-secondary); }
.post-card h2 { font-size: 21px; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.post-card__link { color: inherit; text-decoration: none; }
.post-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card p:not(.post-card__meta) { font-size: 15px; color: var(--text-secondary); }
.post-card__more { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 500; }
.post-card:hover .arrow { transform: translateX(2px); }

@media (max-width: 1050px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 759.98px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .post-card { padding: 22px 20px 20px; }
}

/* ---------- Articles (blog-post-*.html): a reading column, no glass ---------- */

.article { padding: 40px 0 var(--section-pad); background: var(--surface); }
.article__column { max-width: 720px; }
.article__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: var(--label);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.article__back:hover { color: var(--accent); }
.article__back svg { width: 16px; height: 16px; }
.article__head { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article__head .article__back { margin-bottom: 18px; }
.article__head .eyebrow { margin-bottom: 16px; }
.article__head h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.article__byline { font-size: 15px; color: var(--text-secondary); }
.article__byline a { color: var(--text); font-weight: 500; }

.article__body { font-size: 18px; line-height: 1.7; }
.article__body > * + * { margin-top: 1.1em; }
.article__body h2 { margin-top: 2em; font-size: clamp(1.5rem, 2.4vw, 1.85rem); line-height: 1.2; letter-spacing: -0.03em; }
.article__body h3 { margin-top: 1.6em; font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.02em; }
.article__body h2 + *,
.article__body h3 + * { margin-top: 0.6em; }
.article__body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article__body a:hover { color: var(--accent-strong); }
.article__body strong { font-weight: 600; }
.article__body ul,
.article__body ol { padding-left: 1.3em; }
.article__body li + li { margin-top: 0.4em; }
.article__body .post-divider { height: 0; margin-block: 2.2em; border: 0; border-top: 1px solid var(--line); }
.article__body .post-divider + h2 { margin-top: 0; }

.article__body .post-update-note,
.article__body .lesson-box { padding: 20px 22px; border-radius: 18px; font-size: 16px; line-height: 1.6; }
.article__body .post-update-note { background: var(--accent-soft); }
.article__body .lesson-box { border: 1px solid var(--line); background: var(--canvas); }

.article__body .faq-item,
.article__body .post-faq { padding-top: 1.1em; border-top: 1px solid var(--line-soft); }
.article__body .faq-item h3,
.article__body .post-faq h3 { margin-top: 0; }
.article__body .faq-item > * + *,
.article__body .post-faq > * + * { margin-top: 0.5em; }
.article__body .post-faq h3 + p + h3 { margin-top: 1.4em; }

.article__body .table-scroll,
.article__body .post-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  -webkit-overflow-scrolling: touch;
}
.article__body table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.article__body th,
.article__body td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.article__body thead th {
  background: var(--canvas);
  font-size: var(--meta);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.article__body tbody th { font-weight: 600; }
.article__body tbody tr:last-child > * { border-bottom: 0; }
.article__body td.win { font-weight: 600; color: var(--done); }
.article__body .total-row > * { border-top: 2px solid var(--line); font-weight: 600; }

.article__end { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }

.closing--article .closing__copy h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1.15; text-wrap: balance; }

@media (max-width: 759.98px) {
  .article { padding-top: 24px; }
  .article__head h1 { font-size: clamp(2rem, 8.4vw, 2.6rem); line-height: 1.1; }
  .article__body { font-size: 17px; }
  .closing--article .closing__copy h2 { font-size: 28px; }
}

/* ---------- 404 ---------- */

.notfound {
  padding: 64px 0 var(--section-pad);
  background:
    radial-gradient(ellipse at 50% 0%, var(--accent-tint), transparent 60%),
    var(--canvas);
}
.notfound__inner { max-width: 760px; text-align: center; }
.notfound__code { margin-bottom: 6px; font-size: clamp(5rem, 16vw, 8.5rem); font-weight: 600; line-height: 1; letter-spacing: -0.06em; }
.notfound h1 { margin-bottom: 16px; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.1; letter-spacing: -0.04em; }
.notfound .lead { max-width: 560px; margin-inline: auto; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin-top: 30px; }
.notfound__heading {
  margin: 56px 0 18px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: var(--eyebrow-size);
  font-weight: var(--eyebrow-weight);
  letter-spacing: var(--eyebrow-tracking);
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.notfound__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; text-align: left; }
.nf-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.nf-card:hover { border-color: var(--accent); color: var(--accent-strong); }
.nf-card svg { flex: none; width: 20px; height: 20px; color: var(--eyebrow); }

@media (max-width: 759.98px) {
  .notfound { padding-top: 36px; }
  .notfound__grid { grid-template-columns: minmax(0, 1fr); }
  .notfound__actions { flex-direction: column; }
  .notfound__actions .button { width: 100%; }
}

/* ---------- Checklist (checklist.html): no form until the checklist exists ---------- */

.checklist__sub { margin-top: 12px; font-size: 15px; color: var(--text-secondary); }
.checklist__note {
  max-width: 640px;
  margin-top: 30px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.checklist__note-title { margin-bottom: 6px; font-weight: 600; }
.checklist__note p:not(.checklist__note-title) { color: var(--text-secondary); }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .button:hover,
  .chat__toggle:hover { transform: none; }
}
