/* Sections 03a–17 (everything below the hero). Hero styles live in styles.css. */

:root {
  --ink-2: var(--slate-700);
  --ink-soft: var(--slate-400); /* second half of two-tone headings; large text only */
  --muted: var(--slate-500);
  --line: color-mix(in srgb, var(--slate-900) 10%, transparent);
  --line-strong: color-mix(in srgb, var(--slate-900) 18%, transparent);
  --accent: var(--blue-500);      /* BlueMind brand blue */
  --accent-ink: var(--blue-600);  /* brand blue darkened for text on white (AA) */
  --accent-soft: var(--blue-50);
  --ok: var(--green-500);      /* approved, signed, complete */
  --warn: var(--amber-500);    /* needs attention */
  --danger: var(--red-500);    /* risk flags, errors */
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, 0.7);
  --line-dark: rgba(255, 255, 255, 0.12);
  /* Radius — sizes run 2xs → xl, plus full for pills */
  --radius-2xs: 4px;
  --radius-xs: 8px;    /* nav links, small chips, mini buttons */
  --radius-sm: 12px;   /* tiles, menu rows, inputs */
  --radius-md: 16px;   /* inner cards, media */
  --radius-lg: 20px;   /* cards, menu panel, bento */
  --radius-xl: 28px;   /* large stages */
  --radius-full: 999px; /* pills: every button, chips */

  /* Elevation — named by what it does */
  --shadow-hairline: inset 0 0 0 1px var(--line);  /* default edge */
  --shadow-raised: 0 1px 2px color-mix(in srgb, var(--slate-900) 5%, transparent), 0 12px 32px -12px color-mix(in srgb, var(--slate-900) 18%, transparent); /* hovered cards */
  --shadow-overlay: 0 0 0 1px color-mix(in srgb, var(--slate-900) 8%, transparent), 0 24px 48px -20px color-mix(in srgb, var(--slate-900) 20%, transparent); /* menus */
  --shadow-floating: 0 30px 60px -20px color-mix(in srgb, var(--slate-900) 35%, transparent); /* product mocks */

  /* Spacing — 4px rhythm, named by pixel value */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-56: 56px;
  --space-128: 128px;  /* section */
  --space-160: 160px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-drawer: cubic-bezier(0.16, 1, 0.3, 1); /* menus and panels */
  --ink-hover: var(--slate-800);   /* dark surfaces on hover */
  --ink-black: var(--slate-900);   /* deepest fill */
  --surface-warm: var(--slate-10); /* fields and rows inside product mocks */
  --surface-card: var(--slate-50); /* soft grey cards (integrations, onboarding) */
  --surface-tile: var(--slate-100); /* logo tiles */
  --accent-on-dark: var(--blue-300); /* eyebrows and links on dark sections */
  /* Product colours — one blue step per product, used for icons and tints */
  --product-enterprise: var(--blue-500);
  --product-advisor: var(--blue-700);
  --product-all: var(--blue-400);
  --product-mia: var(--blue-900);
  /* Type system modelled on Superpower: one neo-grotesk family, weight 400, tight tracking.
     Geist stands in for their licensed NB International Pro. Sizes match theirs at 1440px. */
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: var(--font);
  /* Type scale — whole pixels only: size / leading / tracking per step */
  --text-3xl: round(clamp(40px, 3.9vw, 56px), 1px);  /* 56 at 1440 */
  --text-2xl: round(clamp(32px, 3.125vw, 45px), 1px); /* 45 */
  --text-xl: round(clamp(24px, 2.08vw, 30px), 1px);   /* 30 */
  --text-lg: 18px;
  --text-md: 16px;
  --text-sm: 15px;
  --text-xs: 13px;
  --leading-3xl: var(--text-3xl);
  --leading-2xl: round(calc(var(--text-2xl) * 1.2), 1px);
  --leading-xl: round(calc(var(--text-xl) * 1.2), 1px);
  --leading-lg: 26px;
  --leading-md: 24px;
  --leading-sm: 22px;
  --leading-xs: 18px;
  --tracking-tight: -1px; /* headings 30px and up */
  --tracking-none: 0;

  /* Buttons */
  --btn-h-sm: 36px;
  --btn-h-md: 40px;
  --btn-h-lg: 48px;
  --btn-tint: color-mix(in srgb, var(--slate-900) 6%, transparent); /* secondary fill, ghost hover */
}

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

/* Phosphor icons (see <head>); size with font-size */
.icon { display: inline-block; flex-shrink: 0; font-size: 20px; line-height: 1; }
.picon { width: 1em; height: 1em; } /* product icons from assets/product-icons.svg size like the font icons */

a { color: inherit; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* ---------- Hero hand-off ----------
   The hero stage stays pinned for 100vh of scroll while the first section rises over it
   as a rounded card, so there's always something to read during the zoom. */

main {
  --lift: 60vh; /* extra lift applied by main.js during the hand-off; keep in sync with LIFT */
  position: relative;
  z-index: 2;
  margin-top: -100vh;
  margin-bottom: calc(-1 * var(--lift)); /* footer follows main's lifted position */
  will-change: transform;
}

/* The section's own top fades from transparent to cream, so it melts into the hero instead of
   showing a hard edge. Kept inside the section so it never covers the hero at rest. */
main > .section:first-of-type {
  /* --blend (0 → 1) is set by main.js: a short soft edge while the hero is dark,
     widening into a long melt once the hero has brightened toward cream */
  --feather: calc(32px + var(--blend, 0) * 128px);
  padding-top: 168px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--surface) var(--feather));
}

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

.container {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}

.section {
  padding: 128px 0;
  background: var(--surface);
}

.section--tint { background: var(--surface); }

.section--dark {
  background: var(--ink);
  color: var(--on-dark);
}

.head { max-width: 760px; margin-bottom: 56px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-ink);
}

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

.h2 {
  font-family: var(--display);
  font-size: round(clamp(2.25rem, 4.2vw, 3.75rem), 1px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -1px;
  text-wrap: balance;
}

.h2 span { color: var(--ink-soft); }
.section--dark .h2 span { color: rgba(255, 255, 255, 0.5); }

.lead {
  margin-top: 20px;
  max-width: 60ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.section--dark .lead { color: var(--on-dark-2); }

.num {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-100), var(--slate-100));
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Buttons & links ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.actions--center { justify-content: center; }

/* Button: one class, three sizes, four variants. Every button shares the same colours:
   ink for primary, ink tints for the rest, accent only as the primary's hover fill.
   On dark surfaces wrap the buttons in .on-dark and the same variants flip to white.
   sections.js adds the flow parts (arrows + fill circle); see "Flow buttons" below. */
.btn {
  --btn-h: var(--btn-h-lg);
  --btn-pad: 24px;
  --btn-fs: 15px;
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-line: transparent;
  --btn-fill: var(--accent);      /* flow hover fill */
  --btn-fill-fg: #fff;            /* text on that fill */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h);
  padding: 0 var(--btn-pad);
  border: 0;
  border-radius: var(--radius-full);
  background: var(--btn-bg);
  box-shadow: inset 0 0 0 1px var(--btn-line);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: var(--btn-fs);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Sizes: 36 / 40 / 48 */
.btn--sm { --btn-h: var(--btn-h-sm); --btn-pad: 16px; --btn-fs: 13px; }
.btn--md { --btn-h: var(--btn-h-md); --btn-pad: 20px; --btn-fs: 14px; }
.btn--lg { --btn-h: var(--btn-h-lg); --btn-pad: 24px; --btn-fs: 15px; }

/* Variants */
.btn--primary   { --btn-bg: var(--ink);       --btn-fg: #fff;       --btn-line: transparent;        --btn-fill: var(--accent); --btn-fill-fg: #fff; }
.btn--secondary { --btn-bg: var(--btn-tint);  --btn-fg: var(--ink); --btn-line: transparent;        --btn-fill: var(--ink);    --btn-fill-fg: #fff; }
.btn--border    { --btn-bg: transparent;      --btn-fg: var(--ink); --btn-line: var(--line-strong); --btn-fill: var(--ink);    --btn-fill-fg: #fff; }
.btn--ghost     { --btn-bg: transparent;      --btn-fg: var(--ink); --btn-line: transparent;        --btn-fill: var(--btn-tint); --btn-fill-fg: var(--ink); }

/* Same variants on dark surfaces */
.on-dark .btn--primary   { --btn-bg: #fff;                      --btn-fg: var(--ink); --btn-fill: var(--accent); --btn-fill-fg: #fff; }
.on-dark .btn--secondary { --btn-bg: rgba(255, 255, 255, 0.1);  --btn-fg: #fff;       --btn-fill: #fff;          --btn-fill-fg: var(--ink); }
.on-dark .btn--border    { --btn-bg: transparent; --btn-fg: #fff; --btn-line: rgba(255, 255, 255, 0.28); --btn-fill: #fff; --btn-fill-fg: var(--ink); }
.on-dark .btn--ghost     { --btn-bg: transparent;               --btn-fg: #fff;       --btn-fill: rgba(255, 255, 255, 0.12); --btn-fill-fg: #fff; }

/* States: hover is the flow fill; focus ring, press and disabled are shared */
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: none;
}

.section--dark .link { color: var(--accent-on-dark); }
.link .icon { font-size: 16px; transition: transform 0.2s var(--ease); }
.link:hover .icon { transform: translateX(3px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--slate-900) 6%, transparent);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.chip .icon { font-size: 14px; }
.chip--accent { background: var(--accent-soft); color: var(--accent-ink); }
.chip--ok { background: var(--green-50); color: var(--ok); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  padding: 5px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}

.tags--dark span { border-color: var(--line-dark); color: var(--on-dark-2); }

/* Trust row: sits in the white space the hero leaves behind, above the suite title.
   Absolutely placed so the title keeps its position; fades in with --blend. */
.suite { position: relative; }

.trust {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 44px); /* logos end 160px above the suite title (168px padding + 36px head padding) */
  display: grid;
  justify-items: center;
  gap: 48px;
  padding: 0 24px;
  opacity: calc((var(--blend, 0) - 0.75) * 4); /* appears in the last quarter of the white wash */
  pointer-events: none;
}

.trust__line { display: flex; align-items: center; gap: 16px; }
.trust__line p { font-size: var(--text-lg); letter-spacing: 0; text-align: center; }

.trust__avatars { display: flex; }
.trust__avatars img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px #fff;
}
.trust__avatars img + img { margin-left: -12px; }

.trust__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 64px;
  list-style: none;
}

.trust__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--slate-300);
  white-space: nowrap;
}

.trust__logo img { width: 28px; height: 28px; filter: grayscale(1) brightness(0) opacity(0.36); } /* uniform grey marks */
.trust__logo img.trust__mark { width: auto; height: var(--h, 36px); filter: none; } /* client wordmarks: already grey in the SVG, height per logo for optical balance */

@media (max-width: 900px) {
  .trust { position: static; gap: 24px; margin-bottom: 96px; } /* too tall to float on phones: sit in flow above the title */
  .trust__line { flex-direction: column; gap: 12px; }
  .trust__logos { gap: 16px 32px; }
  .trust__logo { font-size: 1.125rem; }
  .trust__logo img { width: 20px; height: 20px; }
  .trust__logo img.trust__mark { width: auto; height: calc(var(--h, 36px) * 0.7); }
  .trust__avatars img { width: 44px; height: 44px; }
}

/* ---------- Suite (Enterprise · Advisor) ----------
   Title over two stacked product cards: copy on the left, the product's hero film on the right.
   (The tab bar styles stay for the design-system page.) */

/* The suite now hands straight on to the shared .pp sections below, so it ends with the same 72px they use */
#suite { padding-bottom: 72px; }
#suite .suite__cards { margin-bottom: 0; }

.suite {
  --suite-panel: #ffffff;
  --suite-sub: color-mix(in srgb, var(--slate-900) 65%, transparent);
}

.suite__wrap { width: min(1240px, 100% - 48px); margin-inline: auto; } /* same grid as .container */

/* Header box dissolves so only the tab bar sticks (within the whole section) */
.suite__header { display: contents; }

.suite__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 760px;
  margin-inline: auto;
  padding: 36px 0 56px;
  text-align: center;
}
.suite__title span { color: var(--ink-soft); } /* same two-tone heading as .h2 */
.suite__head .lead { font-size: 1.25rem; line-height: 1.4; color: var(--muted); } /* 20px, same as the hero sub */

.suite__title {
  font-family: var(--display);
  font-size: round(clamp(2.25rem, 3.4vw, 3rem), 1px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -1px;
}

/* Tab bar: grey track of white tiles. Idle tabs show only their icon;
   the active one opens to show its name, with a bar that fills as you read its card. */
.suite__tabs {
  position: sticky;
  top: calc(var(--lift) + 8px); /* just under the top of the viewport; --lift because main is translated up by it */
  z-index: 5;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
}

.suite__tab {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 0;
  gap: 12px;
  height: 64px;
  padding: 8px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: transparent;
  color: var(--muted); /* type comes from the shared text-md group below */
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}

.suite__tab:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--ink); }
.suite__tab .icon {
  box-sizing: content-box;
  padding: 8px;
  border-radius: var(--radius-xs);
  font-size: 32px;
  color: var(--product);
  transition: background-color 0.4s var(--ease);
}

/* Every tab shows its name; the active one is the white, lifted tile with a tinted icon and the ring */
.suite__tab span { white-space: nowrap; }

.suite__tab.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-raised); }
.suite__tab.is-active .icon { background: color-mix(in srgb, var(--product) 12%, transparent); }

/* Reading progress runs round the tab's edge, clockwise from the top-left corner.
   sections.js adds the ring (.suite__ring) and sets --p from 0 to 1. */
.suite__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.suite__tab.is-active .suite__ring { opacity: 1; }
.suite__ring rect {
  x: 1px;
  y: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  rx: calc(var(--radius-md) - 1px); /* follows the tab's corner */
  fill: none;
  stroke-width: 2px;
}
.suite__ring-track { stroke: color-mix(in srgb, var(--product) 18%, transparent); }
.suite__ring-fill {
  stroke: var(--product);
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: calc(1 - var(--p, 0));
}

/* Product colours for icons */
.suite__tab--enterprise, .suite-card--enterprise { --product: var(--product-enterprise); }
.suite__tab--advisor, .suite-card--advisor { --product: var(--product-advisor); }
.suite__tab--all, .suite-card--all { --product: var(--product-all); }
.suite__tab--mia, .suite-card--mia { --product: var(--product-mia); }

/* Cards sit in the same grey track as the tab bar: 8px inset, white tiles, concentric corners */
.suite__cards {
  display: grid;
  gap: 8px;
  margin: 16px 0 64px;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
}

.suite-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  min-height: 676px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--suite-panel);
}

.suite-card__col { display: flex; flex-direction: column; gap: 32px; }

.suite-card__copy { flex: 1; display: flex; flex-direction: column; padding: 56px 40px 40px; }

/* Product lockup above each card's title: the same mark + "BLUEMIND Name" as the product pages */
.suite-card__brand { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 17px; font-weight: 500; color: var(--ink); }
.suite-card__brand img { width: 22px; height: 22px; }
.suite-card__brand b { font-weight: 600; }

.suite-card__title {
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: round(clamp(2.25rem, 3.4vw, 3.0625rem), 1px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -1px;
}

.suite-card__text {
  max-width: 495px;
  margin-bottom: 32px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--suite-sub);
}

.suite-card__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  margin-bottom: 36px;
  color: var(--accent-ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}

.suite-card__link .icon { font-size: 20px; transition: transform 0.2s var(--ease); }
.suite-card__link:hover .icon { transform: translateX(4px); }

.suite-card__list { margin-top: auto; list-style: none; }

.suite-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0;
}

.suite-card__list li + li { margin-top: 28px; }

/* Each point gets its own line icon, tinted with the product colour */
.suite-card__list .icon { flex: none; margin-top: 3px; font-size: 24px; color: var(--product); }

.suite-card .suite-card__media { aspect-ratio: auto; height: 100%; min-height: 100%; border-radius: 0; } /* edge-to-edge panel; beats .stage */
/* Each panel plays that product's hero film: the product page in embed mode (?embed), framed here */
.suite-card__media { position: relative; overflow: hidden; }
.suite-card__app { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.suite-card .suite-card__media:has(.suite-card__app) { background: #fafafa; }

 /* beats the Patchwork .record panel further down */

.stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 48px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
}

/* Warm halo echoing the hero video's light */
.stage--warm {
  background:
    radial-gradient(60% 55% at 50% 38%, color-mix(in srgb, var(--slate-50) 95%, transparent), transparent 70%),
    radial-gradient(80% 80% at 20% 0%, var(--slate-200), transparent 60%),
    radial-gradient(80% 80% at 90% 10%, var(--blue-200), transparent 60%),
    linear-gradient(180deg, var(--slate-200), var(--slate-200));
}

.stage--cool {
  background:
    radial-gradient(60% 55% at 50% 40%, color-mix(in srgb, var(--blue-400) 35%, transparent), transparent 70%),
    radial-gradient(70% 70% at 85% 0%, color-mix(in srgb, var(--slate-300) 35%, transparent), transparent 60%),
    linear-gradient(180deg, var(--slate-800), var(--slate-800));
  box-shadow: inset 0 0 0 1px var(--line-dark);
}

.mock {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-floating), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: mock-in 0.45s var(--ease);
}

.mock[hidden] { display: none; }

@keyframes mock-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
}

.mock--dark {
  background: color-mix(in srgb, var(--slate-900) 88%, transparent);
  color: var(--on-dark);
  box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--slate-900) 60%, transparent), inset 0 0 0 1px var(--line-dark);
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.mock--dark .mock__bar { border-color: var(--line-dark); }
.mock__bar span { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--slate-900) 15%, transparent); }
.mock--dark .mock__bar span { background: rgba(255, 255, 255, 0.2); }
.mock__bar b { margin-left: 8px; font-weight: 600; }

.mock__body { display: grid; gap: 12px; padding: 20px 18px 18px; }
.mock__label { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

.mock__foot { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }

.mock__list { display: grid; gap: 8px; list-style: none; font-size: 14px; }
.mock__list li { display: flex; gap: 8px; align-items: flex-start; }
.mock__list .icon { font-size: 16px; margin-top: 2px; color: var(--ok); }

.trail { display: grid; gap: 0; list-style: none; font-size: 14px; }
.trail li {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 0 0 14px 20px;
  border-left: 2px solid var(--line);
}
.trail li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px #fff;
}
.trail li:last-child { padding-bottom: 0; }
.trail b { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }

.feed { display: grid; gap: 10px; list-style: none; font-size: 14px; }
.feed li { display: flex; align-items: center; gap: 10px; color: var(--on-dark-2); }
.feed b { color: #fff; font-weight: 600; white-space: nowrap; }
.feed em { margin-left: auto; font-style: normal; font-size: 12px; color: rgba(255, 255, 255, 0.5); }

.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot--ok { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 15%, transparent); }
.dot--warn { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 15%, transparent); }

.flag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
}
.flag .icon { font-size: 18px; color: var(--danger); }
.flag div { display: grid; gap: 2px; }
.flag span { font-size: 12px; color: var(--on-dark-2); }
.flag em { margin-left: auto; padding: 3px 8px; border-radius: var(--radius-full); font-size: 11px; font-style: normal; font-weight: 600; background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }

/* ---------- Accordion ---------- */

.acc { margin-top: 36px; }

.acc__item { border-top: 1px solid var(--line); transition: border-color 0.3s var(--ease); }
.acc__item:last-child { border-bottom: 1px solid var(--line); }
.acc__item.is-open { border-top-color: var(--ink); }

.section--dark .acc__item { border-color: var(--line-dark); }
.section--dark .acc__item.is-open { border-top-color: #fff; }

.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 16px 0;
  border: 0;
  background: none;
  color: inherit;
  font: 600 18px/1.35 "Inter", sans-serif;
  text-align: left;
  cursor: pointer;
}

.acc__btn .icon { font-size: 20px; transition: transform 0.3s var(--ease); }
.acc__btn[aria-expanded="true"] .icon { transform: rotate(45deg); }
.acc__btn:hover { color: var(--accent-ink); }
.section--dark .acc__btn:hover { color: var(--blue-200); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.acc__panel > div { overflow: hidden; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel p { padding-bottom: 4px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 52ch; }
.section--dark .acc__panel p { color: var(--on-dark-2); }
.acc__panel .link { margin-bottom: 20px; }

/* ---------- 04 How it works ---------- */

/* Superpower-style steps: a square scene per step (numbered badge + a floating piece of the
   product), then the title and copy sitting on the page below — no card around them. */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 16px; list-style: none; } /* row gap keeps a title clear of the next scene when the grid wraps */

.step { display: flex; flex-direction: column; }
.step h3 { margin-top: 24px; }
#how .step h3 { font-size: 24px; line-height: 30px; letter-spacing: var(--tracking-none); } /* step titles read bigger than card titles */
.step p { margin-top: 8px; color: var(--muted); }

.step__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  isolation: isolate;
}
.step__media > * { transition: transform 0.6s var(--ease); }
.step:hover .step__media > :not(.step__num) { transform: translateY(-4px); }

.step__num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-2xs);
  background: color-mix(in srgb, var(--slate-900) 35%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* Scenes */
.step__media--connect {
  background:
    radial-gradient(70% 60% at 25% 20%, var(--blue-200), transparent 70%),
    radial-gradient(60% 60% at 90% 90%, var(--blue-400), transparent 70%),
    linear-gradient(160deg, var(--blue-100), var(--blue-300));
}

/* Frosted panels floating on a scene */
.glass {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, #fff 55%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 60%, transparent), var(--shadow-floating);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  font-size: 13px;
}
.glass--dark {
  background: color-mix(in srgb, var(--slate-900) 45%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 14%, transparent), var(--shadow-floating);
  color: #fff;
}
.glass__label { padding: 0 4px 4px; font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-2); }

.step__connect { width: 68%; }
.step__connect > span:not(.glass__label) { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--radius-xs); background: color-mix(in srgb, #fff 70%, transparent); font-weight: 500; }
.step__connect .icon { font-size: 16px; color: var(--accent-ink); }
.step__connect .ph-check-circle { margin-left: auto; color: var(--ok); }

.step__rec { position: absolute; left: 12%; right: 12%; bottom: 14%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.step__rec div { display: grid; gap: 2px; }
.step__rec b { font-size: 14px; font-weight: 500; }
.step__rec div span { font-size: 12px; color: var(--on-dark-2, rgba(255, 255, 255, 0.7)); }
.step__cal { flex-shrink: 0; font-size: 22px; color: var(--blue-300, #7abdff); }
.rec-dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: var(--danger); animation: pulse 1.6s ease-in-out infinite; }

@keyframes pulse {
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--danger) 25%, transparent); }
}

/* Audit trail chart */
.trail { position: absolute; inset: 22% 8% 22%; width: 84%; height: 56%; overflow: visible; }

/* ---------- 05 Calculator ---------- */

.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.calc input[type="range"] {
  --fill: 23%;
  width: 100%;
  height: 44px;
  margin: 16px 0 28px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

.calc input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #fff var(--fill), rgba(255, 255, 255, 0.18) var(--fill));
}

.calc input[type="range"]::-moz-range-track { height: 6px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.18); }
.calc input[type="range"]::-moz-range-progress { height: 6px; border-radius: var(--radius-full); background: #fff; }

.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18), 0 4px 12px color-mix(in srgb, var(--slate-900) 30%, transparent);
  transition: box-shadow 0.2s var(--ease);
}

.calc input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18);
}

.calc input[type="range"]:active::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.22), 0 4px 12px color-mix(in srgb, var(--slate-900) 30%, transparent); }

.record {
  height: 340px;
  padding: 32px;
  background: linear-gradient(160deg, var(--accent-soft), var(--slate-50));
}

/* ---------- 08 Dashboard ---------- */

.dash {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px color-mix(in srgb, var(--slate-900) 35%, transparent);
}

.panel { display: grid; align-content: start; gap: 10px; padding: 18px; border-radius: var(--radius-md); box-shadow: var(--shadow-hairline); }

/* ---------- 09 / 10 Icon cards ---------- */

.icard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  transition: transform 0.3s var(--ease);
}

.icard:hover { transform: translateY(-4px); }
.icard h3 { margin-top: 12px; font-size: 18px; font-weight: 600; }
.icard p { font-size: 15px; line-height: 1.55; color: var(--muted); }

.icard__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.icard__icon .icon { font-size: 24px; }

/* ---------- 09 Integrations + Onboarding (two cards; modelled on Amplemarket) ---------- */

.next-cards__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.next-card {
  --card-bg: var(--surface-card);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-height: 700px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  overflow: hidden;
}

.next-card__copy { display: flex; flex-direction: column; align-items: flex-start; padding: 48px 48px 0; max-width: 500px; }

.next-card__eyebrow {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.3;
  text-transform: uppercase;
}

.next-card__title { font-size: 2rem; font-weight: 400; line-height: 1.2; letter-spacing: -1px; text-wrap: balance; }
.next-card__text { margin-top: 16px; font-size: 1.125rem; line-height: 1.45; color: color-mix(in srgb, var(--slate-900) 60%, transparent); text-wrap: pretty; }

.next-card__btn { margin-top: 32px; }

/* Integrations: one wide card — copy left, the integrations we have today as big round tiles right */
.int-wide { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 56px 64px; border-radius: var(--radius-lg); background: var(--surface-card); }
.int-wide__copy { max-width: 520px; }
.int-wide__logos { --tile: 112px; position: relative; display: flex; gap: 28px; list-style: none; }
/* a hairline joins the three tiles; a soft pulse runs along it, behind them */
.int-wide__logos::before { content: ""; position: absolute; top: 50%; left: calc(var(--tile) / 2); right: calc(var(--tile) / 2); height: 1px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.int-wide__logos::after { content: ""; position: absolute; top: calc(50% - 1px); left: calc(var(--tile) / 2); width: 80px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--blue-500), transparent); opacity: 0; animation: int-run 4.5s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes int-run { 0% { left: calc(var(--tile) / 2); opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - var(--tile) / 2 - 80px); opacity: 0; } }
.int-wide__logos li { position: relative; z-index: 1; }
.js .int-wide__logos li[data-reveal] { transform: scale(0.88) translateY(12px); transition-delay: calc(var(--i, 0) * 120ms); }
.js .int-wide__logos li[data-reveal].is-in { transform: none; }
/* each tile drifts on its own beat once it has arrived */
.int-wide__tile { display: grid; place-items: center; width: var(--tile); aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 0 0 8px var(--surface-card), 0 18px 40px -24px rgba(18, 18, 18, 0.28); animation: int-float 5s ease-in-out infinite; transition: transform 0.3s var(--ease-drawer); }
.int-wide__logos li:nth-child(2) .int-wide__tile { animation-delay: -1.7s; }
.int-wide__logos li:nth-child(3) .int-wide__tile { animation-delay: -3.4s; }
@keyframes int-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.int-wide__tile:hover { transform: scale(1.06); }
.int-wide__tile img { width: 40px; height: 40px; }
@media (prefers-reduced-motion: reduce) { .int-wide__tile, .int-wide__logos::after { animation: none; } }
@media (max-width: 1100px) {
  .int-wide { padding: 48px; }
  .int-wide__logos { --tile: 96px; gap: 20px; }
  .int-wide__tile img { width: 34px; height: 34px; }
}
@media (max-width: 900px) {
  .int-wide { flex-direction: column; align-items: flex-start; gap: 32px; padding: 32px 24px; }
  .int-wide__logos { --tile: 72px; gap: 16px; }
  .int-wide__tile { box-shadow: 0 0 0 6px var(--surface-card), 0 12px 28px -18px rgba(18, 18, 18, 0.28); }
  .int-wide__tile img { width: 28px; height: 28px; }
}

/* Integration rows: three tracks of round logo tiles, alternating direction */
.int-card__rows {
  --cycle: 945px; /* 9 tiles × (85px + 20px gap) */
  --speed: 40s;
  position: relative;
  flex: 1;
  min-height: 320px;
  margin-top: auto;
}

.int-card__row {
  position: absolute;
  top: calc(var(--y) + 16px);
  left: calc(var(--offset) - var(--cycle));
  height: 85px;
}

.int-card__track {
  display: flex;
  gap: 20px;
  width: max-content;
  height: 85px;
  will-change: transform;
  animation: int-left var(--speed) linear infinite;
}

.int-card__row--right .int-card__track { animation-name: int-right; }

@keyframes int-left { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--cycle))); } }
@keyframes int-right { from { transform: translateX(calc(-1 * var(--cycle))); } to { transform: translateX(0); } }

.int-card__tile {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: #fff;
}

.int-card__tile img { width: 40px; height: 40px; }

/* Soft fade at both edges into the card */
.int-card__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 89.97%, var(--card-bg) 100%),
    linear-gradient(-90deg, transparent 79.25%, var(--card-bg) 100%);
}

/* Lesson carousel on a dark panel */
.lessons { flex: 1; display: flex; padding: 0 16px 16px; margin-top: auto; min-height: 330px; }

.lessons__panel {
  position: relative;
  flex: 1;
  border-radius: var(--radius-xs);
  background: var(--slate-800);
  overflow: hidden;
}

.lesson {
  --x: 0px;
  --s: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  width: 360px;
  height: 204px;
  padding: 16px;
  border: 1px solid var(--slate-700);
  border-radius: var(--radius-xs);
  color: var(--slate-400);
  transform: translate(-50%, -50%) translateX(var(--x)) scale(var(--s));
  transition: transform 0.4s cubic-bezier(0.22, 0.8, 0.3, 1), color 0.4s, opacity 0.4s;
}

.lesson.is-active { color: var(--slate-200); }
.lesson.is-instant { transition: none; }

.lesson__top { display: flex; align-items: center; justify-content: space-between; }
.lesson__brand { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; }
.lesson__brand img { width: 56px; height: auto; opacity: 0.6; }
.lesson__brand em { font-style: normal; padding-left: 6px; border-left: 1px solid currentColor; opacity: 0.7; }

.lesson__tag {
  padding: 1px 5px;
  border: 1px solid currentColor;
  border-radius: var(--radius-2xs);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lesson__title { margin-top: 28px; font-size: 22px; font-weight: 400; line-height: 1.1; letter-spacing: -1px; }

.lesson__speaker { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.lesson__avatar { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--slate-700); border-radius: var(--radius-2xs); }
.lesson__avatar .icon { font-size: 11px; }
.lesson__speaker b { display: block; font-size: 9px; font-weight: 400; letter-spacing: 0; }
.lesson__speaker small { display: block; font-size: 7px; opacity: 0.7; }

.lesson__play {
  position: absolute;
  right: 28px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: translateY(-20%);
  opacity: 0.6;
}

.lesson__play .icon { font-size: 14px; margin-left: 2px; }

@media (max-width: 900px) {
  .next-cards__grid { grid-template-columns: 1fr; }
  .next-card { min-height: 0; gap: 32px; }
  .next-card__copy { padding: 32px 24px 0; }
  .int-card__rows { min-height: 310px; }
}

@media (max-width: 600px) {
  .next-card__title { font-size: 1.75rem; }
  .lesson { width: 280px; height: 170px; }
  .lesson__title { font-size: 18px; margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .int-card__track { animation: none; }
  .lesson { transition: none; }
}

/* ---------- 10 Security (bento of outlined cards) ---------- */

.security .head { max-width: 640px; }

.bento {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: minmax(205px, auto);
  grid-auto-flow: dense; /* badges backfill rows when the grid narrows */
  gap: 20px;
}

.bento__card,
.bento__badge {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
}

.bento__card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

a.bento__card:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.02); }

.bento__card h3 { font-size: 1.125rem; font-weight: 400; line-height: 1.3; color: #fff; }
.bento__card p { max-width: 40ch; font-size: 1rem; line-height: 1.3; letter-spacing: 0; color: var(--on-dark-2); }

.bento__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 0.875rem;
  color: #fff;
}

.bento__link .icon { font-size: 14px; transition: transform 0.2s var(--ease); }
a.bento__card:hover .bento__link .icon { transform: translateX(3px); }

/* Icon chips sit at the top; title + text drop to the bottom of the card */
.bento__marks { display: flex; margin-bottom: auto; }
.bento__marks .icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: var(--ink);
  font-size: 16px;
  color: var(--on-dark-2);
}
.bento__marks .icon + .icon { margin-left: -8px; }

/* Line-art badge: thin outline with a label on top */
.bento__badge {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

.bento__badge svg {
  position: absolute;
  width: 58%;
  height: 58%;
  fill: none;
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 1.5;
}

.bento__badge:has(.bento__lock) { place-content: center; gap: 0; }

.bento__badge span {
  position: relative;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -1px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 1100px) {
  /* square badges + a 205px row floor kept the columns at 205px and pushed the grid off narrow screens */
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; }
  .bento__card { grid-column: span 4; min-height: 180px; }
}

@media (max-width: 600px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; grid-auto-rows: auto; }
  .bento__card { grid-column: span 2; min-height: 180px; padding: 24px; }
  .bento__badge span { font-size: 1.125rem; padding: 0 8px; overflow-wrap: anywhere; }
}

/* ---------- 11 Customers ---------- */

.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface-card); }
.quote > p { font-family: var(--display); font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.quote__who { display: flex; align-items: center; gap: 12px; }
.quote__who div { display: grid; }
.quote__who b { font-size: 15px; font-weight: 600; }
.quote__who span { font-size: 13px; color: var(--muted); }

/* ---------- 14 FAQ ---------- */

.faq { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 80px; align-items: start; }
 /* below the sticky nav */

/* ---------- 14 FAQ (minimal hairline list) ---------- */

.faq2__title {
  margin-bottom: 64px;
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: var(--leading-3xl);
  letter-spacing: var(--tracking-tight);
  text-align: center;
}

.acc--lines { margin-top: 0; }
.acc--lines .acc__item,
.acc--lines .acc__item:last-child { border-color: color-mix(in srgb, var(--slate-900) 8%, transparent); }
.acc--lines .acc__item.is-open { border-top-color: color-mix(in srgb, var(--slate-900) 8%, transparent); }

.acc--lines .acc__btn {
  min-height: 96px;
  padding: 28px 0;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0;
}

.acc--lines .acc__btn:hover { color: inherit; }
.acc--lines .acc__btn .icon { font-size: 22px; }

.acc--lines .acc__panel p {
  max-width: 68ch;
  padding-bottom: 32px;
  font-size: var(--text-md);
  line-height: 26px;
}

/* Blinking caret while an answer is being typed */
.type-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--accent);
  animation: caret 0.8s steps(1) infinite;
}

@keyframes caret { 50% { opacity: 0; } }

.faq2__more { margin-top: 40px; text-align: center; font-size: var(--text-sm); color: var(--muted); }
.faq2__more a { color: var(--ink); }

@media (max-width: 600px) {
  .faq2__title { margin-bottom: 40px; }
  .acc--lines .acc__btn { min-height: 72px; padding: 20px 0; font-size: 1.0625rem; }
}

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

.footer { padding: 88px 0 0; overflow: hidden; background: var(--surface); border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.footer__logo { width: 132px; height: auto; filter: brightness(0) opacity(0.9); }
.footer__tag { max-width: 320px; margin-top: 24px; font-size: var(--text-lg); line-height: 1.35; letter-spacing: -0.02em; }
.footer__brand .btn { margin-top: 28px; }

/* Email form pattern (used on the design-system page) */
.news { margin-top: 32px; max-width: 420px; }
.news label { display: block; margin-bottom: 12px; font-size: 16px; font-weight: 600; }
.news__row { display: flex; gap: 8px; }

.news input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: box-shadow 0.2s var(--ease);
}

.news input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.news input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--danger); }
.news__msg { min-height: 22px; margin-top: 8px; font-size: 14px; }
.news__msg.is-error { color: var(--danger); }
.news__msg.is-ok { color: var(--ok); }

.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__cols h2 { margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.footer__cols ul { display: grid; gap: 4px; list-style: none; }
.footer__cols a { display: inline-block; padding: 6px 0; font-size: 15px; color: var(--muted); text-decoration: none; transition: color 0.2s var(--ease); }
.footer__cols a:hover { color: var(--ink); }

.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__bottom a { text-decoration: none; transition: color 0.2s var(--ease); }
.footer__bottom a:hover { color: var(--ink); }
.footer__social { display: flex; gap: 4px; list-style: none; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; color: var(--ink-2); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.footer__social a:hover { background: var(--surface-card); color: var(--ink); }  /* grey chip on the white footer */
/* Brand icons: Font Awesome Free 6.5.2 brands (CC BY 4.0, assets/icons/*.svg, licence kept in each file),
   drawn as a mask in currentColor so they take the link colour and hover states. */
.bico { display: block; width: 1em; height: 1em; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.bico--linkedin { -webkit-mask-image: url('assets/icons/linkedin.svg?v=9c0b0c4f7e'); mask-image: url('assets/icons/linkedin.svg?v=9c0b0c4f7e'); }
.bico--x { -webkit-mask-image: url('assets/icons/x-twitter.svg?v=61b67d1346'); mask-image: url('assets/icons/x-twitter.svg?v=61b67d1346'); }
.bico--instagram { -webkit-mask-image: url('assets/icons/instagram.svg?v=4da4a7b89b'); mask-image: url('assets/icons/instagram.svg?v=4da4a7b89b'); }
.bico--facebook { -webkit-mask-image: url('assets/icons/facebook.svg?v=0df0d2613a'); mask-image: url('assets/icons/facebook.svg?v=0df0d2613a'); }
.footer__mark { display: block; width: 100%; height: auto; margin: 48px 0 -6%; filter: brightness(0) opacity(0.06); user-select: none; pointer-events: none; }  /* ghost wordmark, cut by the page edge */

/* ---------- Scroll reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}

.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .stages { grid-template-columns: repeat(3, 1fr); }
  .stage-card::after { display: none; }
  .steps, .cards4 { grid-template-columns: repeat(2, 1fr); }
  .pipe { grid-template-columns: 1fr; }
  .pipe__col:not(:last-child)::after { top: auto; bottom: -22px; right: 50%; transform: translateX(50%) rotate(135deg); }
  .dash__grid { grid-template-columns: 1fr 1fr; }
  .dash__grid .panel:last-child { grid-column: span 2; }
}

@media (max-width: 900px) {
  .section { padding: 88px 0; }
  .head { margin-bottom: 40px; }
  
  .calc, .faq, .footer__top  { grid-template-columns: 1fr; gap: 48px; }
  .suite__wrap { width: min(1240px, 100% - 32px); }
  .suite__head { gap: 12px; padding: 24px 0 40px; }
  .suite__title { font-size: 1.75rem; line-height: 1.1; }
  .suite__tabs { gap: 6px; padding: 6px; }
  /* Four names won't fit side by side on a phone: icon over name */
  .suite__tab { flex-direction: column; justify-content: center; gap: 2px; height: 72px; padding: 6px 4px; }
  .suite__tab .icon { padding: 4px; font-size: 24px; }
  .suite__cards { gap: 6px; padding: 6px; margin-bottom: 0; }
  .suite-card { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .suite-card__col { gap: 0; }
  .suite-card__copy { padding: 28px 24px; }
  .suite-card__title { margin-bottom: 16px; }
  .suite-card__text { font-size: 16px; margin-bottom: 20px; }
  .suite-card__link { font-size: 17px; margin-bottom: 24px; }
  .suite-card__list li { font-size: 16px; }
  .suite-card__list li + li { margin-top: 14px; }
  .suite-card__list .icon { margin-top: 1px; font-size: 20px; }
  .suite-card .suite-card__media { min-height: 340px; }
  .stage { aspect-ratio: auto; min-height: 360px; padding: 32px 20px; }

  .dash { grid-template-columns: 1fr; }

}

@media (max-width: 600px) {
  .container { width: min(1240px, 100% - 32px); }
  .steps { grid-template-columns: 1fr; }

   .footer__bottom  { flex-direction: column; align-items: flex-start; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .actions .btn { flex: 1 1 100%; }
   .record  { height: 300px; }
  
  .record { padding: 20px; }
  
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
   .rec-dot  { animation: none; }
  .mock { animation: none; }

}

/* Anchor jumps land below the fixed nav */
main section[id] { scroll-margin-top: calc(96px + var(--lift)); } /* below the sticky nav */
#suite { scroll-margin-top: var(--lift); } /* nav isn't pinned yet here */ /* sections sit --lift above their layout box */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Type layer (Superpower scale) ----------
   Overrides the per-component sizes above so every section shares one scale. */

.int__title {
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: var(--leading-3xl);
  letter-spacing: var(--tracking-tight);
}

.h2, .suite__title {
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: var(--leading-2xl);
  letter-spacing: var(--tracking-tight);
}
/* Card titles sit one step under the section heading */
.suite-card__title {
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: var(--leading-xl);
  letter-spacing: var(--tracking-tight);
}

.lead, .suite-card__text  {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: var(--leading-lg);
  letter-spacing: var(--tracking-none);
}

/* Labels: small, regular, sentence case (no uppercase eyebrows) */
.eyebrow, .mock__label {
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: var(--leading-xs);
  letter-spacing: var(--tracking-none);
  text-transform: none;
}

/* Card and item titles */
.step h3, .icard h3, .quote > p  {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: var(--leading-lg);
  letter-spacing: var(--tracking-none);
}

  .quote__who b,
.suite__tab, .suite-card__list li, .news label   {
  font-size: var(--text-md);
  font-weight: 400;
  line-height: var(--leading-md);
  letter-spacing: var(--tracking-none);
}

.acc__btn {
  font-family: var(--font);
  font-size: var(--text-md);
  font-weight: 400;
  letter-spacing: var(--tracking-none);
}

/* Actions: weight 500, like Superpower's buttons */
 .link, .int__link  { font-weight: 500; }
.suite-card__link { font-size: var(--text-md); font-weight: 500; }

.footer__cols h2 { font-size: var(--text-xs); font-weight: 500; }

@media (max-width: 900px) {
  .suite__tab { font-size: var(--text-xs); line-height: var(--leading-xs); }
}

/* ---------- Flow buttons ----------
   Every .btn: on hover a circle grows from the centre, the label slides right,
   a left arrow slides in and the right arrow slides out. Fill colour comes from the variant
   (--btn-fill / --btn-fill-fg). sections.js adds the parts. */

.flow {
  --flow-pad: calc(var(--btn-pad) + 8px);
  --flow-shift: 8px;
  --flow-inset: calc(var(--btn-pad) - 8px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 0 var(--flow-pad);
  /* Clip the growing circle with a real rounded mask: overflow + radius alone leaves a
     jagged, unblended edge where the circle meets the pill in Chrome and Safari */
  clip-path: inset(0 round var(--radius-full));
  transform: translateZ(0);
  transition: color 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    background-color 0s linear 0s, transform 0.15s ease;
}

.flow__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateX(calc(var(--flow-shift) * -1));
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.flow .flow__arrow {
  position: absolute;
  z-index: 2;
  font-size: calc(var(--btn-fs) + 1px);
  transition: left 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), right 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flow .flow__arrow--l { left: -25%; }
.flow .flow__arrow--r { right: var(--flow-inset); }

.flow__circle {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--btn-fill);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: width 0.45s cubic-bezier(0.19, 1, 0.22, 1), height 0.45s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.flow:is(:hover, :focus-visible, .is-hover) {
  color: var(--btn-fill-fg);
  box-shadow: inset 0 0 0 1px transparent;
  /* Once the circle has covered the pill, the pill itself takes the fill so its
     anti-aliased edge is the fill colour, with no old-colour halo around it */
  background-color: var(--btn-fill);
  transition: color 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    background-color 0s linear 0.3s, transform 0.15s ease;
}
.flow:is(:hover, :focus-visible, .is-hover) .flow__label { transform: translateX(var(--flow-shift)); }
.flow:is(:hover, :focus-visible, .is-hover) .flow__arrow--l { left: var(--flow-inset); }
.flow:is(:hover, :focus-visible, .is-hover) .flow__arrow--r { right: -25%; }
.flow:is(:hover, :focus-visible, .is-hover) .flow__circle { width: 360px; height: 360px; opacity: 1; }
.flow:active { transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  .flow, .flow__label, .flow__arrow, .flow__circle { transition: none; }
}

/* ---------- Products menu ----------
   Motion after Bencho's "Create menu" (MIT — bencho.dev/licence), rebuilt without React.
   Bencho's tokens map to ours: --board/--fill-slab → #fff (our surface), --ink → var(--ink),
   --ink-rgb → 18 18 18 (slate-900), --font-ui → our body font, --pane-edge → the hairline ring below.

   One shape, and no filter on it. The liquid is entirely in the timing: the press sinks,
   and the spread starts while the sink is still running so there is never a still frame. */

/* Invisible click-catcher: anywhere but the menu puts it away */
.drawer-overlay { position: fixed; inset: 0; z-index: 40; display: none; }
.drawer-overlay.is-open { display: block; }

.drawer {
  --ink-rgb: 18, 18, 18; /* --slate-900 */
  --menu-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Concentric with the hero image: its corner less the 4px gap */
  --menu-r: calc(var(--hero-r) - 4px);
  --product: var(--ink); /* icon tiles for rows that aren't a product: ink on soft grey */
  position: fixed;
  z-index: 41;
  width: var(--panel-w, 384px);
  outline: none;
  /* Starts on the button, then drops below the menu bar as it spreads — same curve, same time */
  transform: translate(var(--dx, 0px), var(--dy, 0px));
  transition: transform 260ms var(--menu-ease);
}

.drawer.no-anim { transition: none; }

/* The shape: starts as the Product button (its size, a pill), spreads into the panel.
   Width, height and the corner run the same curve for the same time — staggering the
   axes made the open read as two animations queued up rather than one thing changing
   size — and the curve lands without passing its target, so the corners never dip
   under their radius and come back (a wobble, not a bounce). */
.drawer__shape {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--w);
  height: var(--h);
  border-radius: var(--r);
  background: #fff;
  /* a hairline ring gives the white panel its edge on a white page */
  box-shadow: var(--shadow-overlay);
  transition:
    width 260ms var(--menu-ease),
    height 260ms var(--menu-ease),
    border-radius 260ms var(--menu-ease),
    scale 420ms var(--menu-ease);
}

.drawer.is-right .drawer__shape { left: auto; right: 0; }

/* The first beat: pressed down. A plain uniform shrink, in fast, because a press should
   be felt at once and not eased into. */
.drawer.is-sink .drawer__shape,
.nav__menu-btn.is-sink,
.nav__menu-icon.is-sink { scale: 0.94; transition: scale 160ms var(--menu-ease); }

.nav__menu-btn, .nav__menu-icon { transition: scale 420ms var(--menu-ease), background-color 0.2s ease; }

.drawer__panel { position: relative; padding: 12px; pointer-events: none; }
.drawer.is-open .drawer__panel { pointer-events: auto; }

/* Rows arrive on the shell's curve with no overshoot either: a row that slides past its
   resting line and comes back is the same wobble at a smaller size. Delays are set in JS
   (30ms + 22ms a row) and kept short so the menu finishes arriving with the shape. */
.drawer__item {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 220ms var(--menu-ease);
}

.drawer.is-open .drawer__item { opacity: 1; transform: none; }

/* 12px panel + 12px here = 24px from the top and the left, same as the row content below */
.drawer__label { padding: 12px 12px 8px; font-size: 13px; color: var(--muted); }

.drawer__links { display: grid; gap: 2px; list-style: none; }

.drawer__links a {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  /* small inner corner: the panel's corner is only 8px */
  border-radius: var(--radius-2xs);
  color: rgba(var(--ink-rgb), 0.9);
  text-decoration: none;
  transition: color 220ms ease;
}

/* The hover wash, one per row. Each row fades its own in and out; nothing travels
   between them. */
.drawer__links a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(var(--ink-rgb), 0.05);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

@media (hover: hover) {
  .drawer__links a:hover::before { opacity: 1; transition-duration: 160ms; }
}

.drawer__links a:focus-visible { outline: none; }
.drawer__links a:focus-visible::before { opacity: 1; }

/* Icon tile: two-tone glyph on a soft tinted squircle, no edge */
.drawer__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--product) 7%, #fff);
  color: var(--product);
  transition: transform 220ms var(--menu-ease);
}

.drawer__icon .icon { font-size: 22px; }
.drawer__links a:hover .drawer__icon { transform: scale(1.06); }

/* Phone-only rows: the nav links, which the bar hides under 900px */
.drawer__links--phone { padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
@media (min-width: 901px) { .drawer__links--phone { display: none; } }

/* Featured card at the foot of the Company menu */
.drawer__feature { display: grid; gap: 4px; margin-top: 8px; padding: 16px; border-radius: var(--radius-xs); background: var(--surface-card); color: var(--ink); text-decoration: none; transition: opacity 160ms ease, transform 220ms var(--menu-ease), background-color 0.2s ease; } /* keep the row fade, add the hover tint */
.drawer__feature:hover { background: var(--surface-tile); }
.drawer__feature small { font-size: 12px; color: var(--muted); }
.drawer__feature b { font-size: var(--text-md); font-weight: 400; }
.drawer__feature span { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--accent-ink); }

/* Language row: phones only, where the nav switcher is hidden (styles.css) */
.drawer__lang { display: none; align-items: center; gap: 4px; margin-bottom: 8px; padding: 4px 4px 4px 12px; border-radius: var(--radius-xs); background: var(--surface-card); }
.drawer__lang .icon { margin-right: auto; font-size: 20px; color: var(--muted); }
.drawer__lang button { height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.drawer__lang button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }
@media (max-width: 600px) { .drawer__lang { display: flex; } }

/* Sheet-only parts: grab handle + title, and Login / Book a demo at the foot */
.drawer__head, .drawer__foot { display: none; }
.drawer__label--phone { padding-top: 4px; }
@media (min-width: 901px) { .drawer__label--phone { display: none; } }

/* Phones: the menu takes the whole screen, with everything sat low in thumb reach.
   Products are big rows on their own tinted tiles, the page you're on sits on a soft
   grey card, Company is a two-by-two of grey tiles, and the actions close the foot. */
@media (max-width: 600px) {
  .drawer.is-full { inset: 0 !important; z-index: 60; width: auto; transform: none; opacity: 0; transition: opacity 240ms ease; }
  .drawer.is-full.is-open { opacity: 1; }
  .drawer.is-full .drawer__shape { inset: 0; width: auto; height: auto; border-radius: 0; scale: 1; transition: none; box-shadow: none; background: #fff; }
  .drawer.is-full .drawer__panel {
    display: flex; flex-direction: column; height: 100%; overflow-y: auto; overscroll-behavior: contain;
    padding: 0 16px calc(16px + env(safe-area-inset-bottom));
  }
  .drawer.is-full .drawer__item { transform: translateY(12px); transition: opacity 240ms ease, transform 420ms var(--ease-drawer); }
  .drawer.is-full.is-open .drawer__item { transform: none; }

  .drawer__head { display: flex; flex: none; align-items: center; justify-content: space-between; height: 72px; padding-left: 8px; margin-bottom: auto; }
  .drawer__logo img { display: block; width: 104px; height: auto; }
  .drawer__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--radius-full); background: var(--surface-card); color: var(--ink); font-size: 18px; cursor: pointer; }

  .drawer.is-full .drawer__label { padding: 24px 8px 8px; font-size: 13px; }
  .drawer.is-full .drawer__label--phone { padding-top: 16px; }
  .drawer.is-full .drawer__feature { display: none; }
  .drawer.is-full .drawer__links { padding: 0; margin: 0; border: 0; }
  .drawer.is-full .drawer__links--phone .drawer__item:first-child { display: none; } /* Home: the logo goes home */
  .drawer.is-full a[href="mia.html"] { --product: var(--product-mia); }

  /* Products: big rows, tinted tile, one-line blurb */
  .drawer.is-full .drawer__links--phone { gap: 4px; }
  .drawer.is-full .drawer__links--phone a { gap: 14px; padding: 10px 8px; border-radius: var(--radius-md); }
  .drawer.is-full .drawer__links--phone .drawer__icon { width: 48px; height: 48px; border-radius: var(--radius-md); }
  .drawer.is-full .drawer__links--phone .drawer__icon .icon { font-size: 24px; }
  .drawer.is-full .drawer__links--phone .drawer__text { min-width: 0; }
  .drawer.is-full .drawer__links--phone .drawer__text b { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
  .drawer.is-full .drawer__links--phone .drawer__text small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .drawer.is-full .drawer__links a[aria-current="page"] { background: var(--surface-card); }
  .drawer.is-full .drawer__links--phone a[aria-current="page"] .drawer__icon { background: #fff; }

  /* Company: two-by-two grey tiles, names only */
  .drawer.is-full .drawer__links:not(.drawer__links--phone) { grid-template-columns: 1fr 1fr; gap: 8px; }
  .drawer.is-full .drawer__links:not(.drawer__links--phone) a { gap: 10px; height: 56px; padding: 0 12px; border-radius: var(--radius-md); background: var(--surface-card); }
  .drawer.is-full .drawer__links:not(.drawer__links--phone) a[aria-current="page"] { background: var(--surface-tile); }
  .drawer.is-full .drawer__links:not(.drawer__links--phone) .drawer__icon { width: auto; height: auto; background: none; color: var(--muted); }
  .drawer.is-full .drawer__links:not(.drawer__links--phone) .drawer__icon .icon { font-size: 20px; }
  .drawer.is-full .drawer__links:not(.drawer__links--phone) .drawer__text b { font-size: 16px; }
  .drawer.is-full .drawer__links:not(.drawer__links--phone) .drawer__text small { display: none; }

  /* Foot: language switch, then Login + Book a demo */
  /* One corner for every surface (16px), pills for every control */
  .drawer__lang { order: 10; height: 48px; margin: 24px 0 0; padding: 4px 4px 4px 16px; border-radius: var(--radius-full); }
  .drawer__lang button { height: 40px; padding: 0 16px; border-radius: var(--radius-full); }
  .drawer__foot { order: 11; display: flex; gap: 8px; margin-top: 16px; }
  .drawer__login { display: grid; place-items: center; flex: none; height: 48px; padding: 0 24px; border-radius: var(--radius-full); background: var(--surface-card); color: var(--ink); font-size: 15px; text-decoration: none; }
  .drawer__foot .btn { flex: 1; height: 48px; justify-content: center; }
}

.drawer__text { display: grid; gap: 2px; }
.drawer__text b { font-size: var(--text-lg); font-weight: 400; letter-spacing: 0; color: var(--ink); }
.drawer__text small { font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .drawer__shape, .drawer__item { transition-duration: 160ms; }
  .drawer.is-sink .drawer__shape, .nav__menu-btn.is-sink, .nav__menu-icon.is-sink { scale: 1; }
}

/* Phone nav: keep logo, "Book a demo" and the products button on one line */
@media (max-width: 600px) {
  .nav__logo img { width: 104px; }
  .nav .flow { padding-left: 18px !important; padding-right: 18px !important; }
  .nav .flow .flow__label { transform: none; }
  .nav .flow .flow__arrow--r { display: none; }
}

.drawer.no-anim .drawer__shape { transition: none; }

/* Demo video modal */
.vmodal { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(1040px, calc(100vw - 32px)); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 20px; background: #000; overflow: visible; }
.vmodal::backdrop { background: rgba(10, 10, 14, 0.78); backdrop-filter: blur(6px); }
.vmodal[open] { animation: vmodal-in 0.35s var(--ease) both; }
.vmodal__frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: inherit; }
.vmodal__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.vmodal__close { position: absolute; top: -52px; right: 0; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; transition: background-color 0.2s; }
.vmodal__close .icon { font-size: 20px; }
.vmodal__close:hover { background: rgba(255, 255, 255, 0.26); }
.vmodal__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes vmodal-in { from { opacity: 0; transform: scale(0.96); } }

/* Book a demo chooser */
.dmodal { position: fixed; inset: 0; margin: auto; width: min(880px, calc(100vw - 32px)); max-width: none; height: fit-content; max-height: calc(100svh - 32px); padding: 48px; border: 0; border-radius: var(--radius-lg); background: #fff; color: var(--ink); overflow: auto; }
.dmodal::backdrop { background: rgba(10, 10, 14, 0.5); backdrop-filter: blur(6px); }
.dmodal[open] { animation: vmodal-in 0.35s var(--ease) both; }
.dmodal__close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface-card); color: var(--ink); font-size: 18px; cursor: pointer; transition: background-color 0.2s; }
.dmodal__close:hover { background: var(--surface-tile); }
.dmodal__title { font-size: var(--text-xl); font-weight: 400; line-height: var(--leading-xl); letter-spacing: var(--tracking-tight); }
.dmodal__lead { margin-top: 8px; font-size: var(--text-md); color: var(--muted); }
.dmodal__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; list-style: none; }
.dmodal__opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; height: 100%; padding: 24px; border: 0; border-radius: var(--radius-md); background: var(--surface-card); color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background-color 0.2s, transform 0.25s var(--ease-drawer); }
.dmodal__opt:hover { background: var(--surface-tile); transform: translateY(-2px); }
.dmodal__opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dmodal__icon { --product: var(--ink-2); display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: var(--radius-md); background: #fff; color: var(--product); font-size: 24px; }
.dmodal__opt b { font-size: var(--text-lg); font-weight: 500; }
.dmodal__opt small { padding-right: 24px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.dmodal__go { position: absolute; top: 24px; right: 24px; font-size: 18px; color: var(--muted); transition: transform 0.25s var(--ease-drawer), color 0.2s; }
.dmodal__opt:hover .dmodal__go { transform: translateX(3px); color: var(--ink); }
.dmodal__back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.dmodal__back:hover { color: var(--ink); }
.dmodal__form { display: grid; gap: 16px; max-width: 520px; margin-top: 28px; }
.dmodal__form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.dmodal__form input, .dmodal__form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 400; resize: vertical; }
.dmodal__form input:focus, .dmodal__form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.dmodal__form .btn { justify-self: start; margin-top: 4px; }
.dmodal__msg { font-size: 14px; color: var(--accent-ink); }
.dmodal.is-wide { width: min(1040px, calc(100vw - 32px)); }
.dmodal__cal { margin: 24px -24px -24px; min-height: 660px; }
.dmodal__pricing { margin-top: 32px; }
.dmodal__pricing .aplan { padding: 28px 24px; } /* tighter than the Advisor page: three cards in a dialog */
.dmodal__cal iframe { display: block; width: 100%; height: 680px; border: 0; }
@media (max-width: 700px) {
  .dmodal { padding: 32px 20px 20px; border-radius: 20px; }
  .dmodal__opts { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
  .dmodal__opt { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; padding: 16px; }
  .dmodal__icon { grid-row: 1 / 3; width: 44px; height: 44px; margin: 0; font-size: 22px; }
  .dmodal__go { top: 50%; right: 16px; margin-top: -9px; }
  .dmodal__form .btn { justify-self: stretch; }
  .dmodal__cal { margin: 20px -12px -12px; min-height: 0; }
  .dmodal__cal iframe { height: 720px; }
}
@media (prefers-reduced-motion: reduce) { .vmodal[open] { animation: none; } }
