/* ClerkMinutes 404 concepts — shared base styles.
   Brand values measured from the live site: primary blue #0090ff with an inset glow #00d0ff,
   soft blue #e8f5ff, Plus Jakarta Sans (800 headings), white background, black text. */

:root {
  --cm-blue: #0090ff;
  --cm-blue-glow: #00d0ff;
  --cm-blue-soft: #e8f5ff;
  --cm-blue-ink: #0067b8;
  --cm-ink: #0b0d12;
  --cm-muted: #5b6573;
  --cm-line: #e6e8ec;
  --cm-bg: #ffffff;
  --cm-paper: #fbfaf6;
  --cm-paper-line: #e9e4d6;
  --cm-green: #1f9d55;
  --cm-green-soft: #e6f6ec;
  --cm-red: #c0392b;
  --cm-red-soft: #fbeae7;
  --cm-amber: #b7791f;
  --cm-amber-soft: #fff4dc;
  --cm-font: "Plus Jakarta Sans", "Plus Jakarta Sans Placeholder", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cm-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --cm-radius: 12px;
  --cm-shadow: 0 10px 30px rgba(11, 13, 18, 0.06);
  --cm-focus: #0b0d12;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--cm-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cm-ink);
  background: var(--cm-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { max-width: 100%; }
a { color: var(--cm-blue-ink); }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; text-wrap: balance; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.04em; }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; text-wrap: pretty; }
li { text-wrap: pretty; }
.cm-lead { font-size: 18px; color: var(--cm-muted); max-width: 60ch; }
.cm-muted { color: var(--cm-muted); }
.cm-mono { font-family: var(--cm-mono); }
.cm-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cm-blue-ink); margin-bottom: 12px;
}
.cm-center { text-align: center; }
.cm-center .cm-lead { margin-left: auto; margin-right: auto; }
.cm-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Site header ----------
   A copy of the site navbar (Framer component framer-BZkuO, as restyled by /assets/site/brand.css —
   logo lockup + the style guide's pill buttons), so this page's header matches every other page.
   Measured from the live homepage:
     ≥ 1200px  fixed white bar, padding 24px 80px, 46px pill buttons → 94px tall; logo at x 80 / y 30.5;
               links 16px/400 in 40px pills (12px side padding, #f8f8f8 on hover), 24px gaps;
               "Log in" = outlined pill (1.5px #D5D5DC, 15px/700 Ink, 12.5×26.5 padding);
               "Start Free Trial" = gradient pill (135deg #00C4FF→#FF3EA5, 15px/700 white, 14×28 padding).
     <  1200px  padding 20px 24px, 33px logo + 30px hamburger → 73px tall; logo at x 24 / y 20;
               the menu opens as a full-height white panel of 56px rows (the site's phone menu).
   Dropdown + panel state is driven by the inline script (.is-open on the <li> / .cm-header);
   the <noscript> block in 404.html keeps a hover-only fallback. Keep these values in step with brand.css. */
.cm-header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; background: #fff; }
body { padding-top: 94px; }
#main, .cm-doc__title { scroll-margin-top: 110px; }
.cm-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 80px; min-height: 94px; width: 100%;
}
.cm-nav__logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #000; flex: none; }
.cm-nav__logo img { display: block; width: 30px; height: 33px; }
.cm-nav__wordmark { display: inline-flex; align-items: flex-start; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.cm-nav__wordmark sup { font-size: 10px; font-weight: 300; letter-spacing: 0; line-height: 1; vertical-align: top; margin-left: 1px; }
.cm-nav__toggle { display: none; }
.cm-nav__menu { display: flex; align-items: center; gap: 24px; }
.cm-nav__links { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.cm-nav__item { position: relative; }
.cm-nav__link {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: 12px;
  font: 400 16px/24px var(--cm-font); color: #000; text-decoration: none; background: #fff; white-space: nowrap;
  border: 0; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.cm-nav__link:hover, .cm-nav__item.is-open > .cm-nav__link { background: #f8f8f8; }
.cm-nav__chevron { width: 16px; height: 16px; flex: none; transition: transform 160ms ease; }
.cm-nav__item.is-open > .cm-nav__link .cm-nav__chevron { transform: rotate(180deg); }
.cm-nav__actions { display: flex; align-items: center; gap: 24px; }
.cm-nav__btn {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 46px;
  border-radius: 999px; font: 700 15px/1.2 var(--cm-font); color: #0a0a0f; text-decoration: none; white-space: nowrap;
}
.cm-nav__btn--soft { background: transparent; border: 1.5px solid #d5d5dc; padding: 12.5px 26.5px; transition: border-color 0.2s ease; }
.cm-nav__btn--soft:hover { border-color: #0a0a0f; }
.cm-nav__btn--primary { background: linear-gradient(135deg, #00c4ff, #ff3ea5); color: #fff; padding: 14px 28px; transition: transform 0.2s ease; }
.cm-nav__btn--primary:hover { transform: scale(1.04); }
.cm-nav__link:focus-visible, .cm-nav__btn:focus-visible, .cm-nav__logo:focus-visible, .cm-nav__toggle:focus-visible, .cm-nav__dd-item:focus-visible {
  outline: 3px solid var(--cm-focus); outline-offset: 2px;
}

/* Dropdowns (Product Tour, Resources): white card 4px under the bar, centered on its link.
   Open state = .is-open on the <li> (set by the script on hover / focus / click / tap). */
.cm-nav__dropdown {
  position: absolute; top: calc(100% + 28px); left: 50%; transform: translateX(-50%); z-index: 20;
  display: none; padding: 8px; background: #fff; border-radius: 10px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  flex-direction: column; gap: 10px; width: 371px;
}
.cm-nav__dropdown--grid { display: none; grid-template-columns: 237px 237px; gap: 10px; width: 500px; }
.cm-nav__item--has-menu.is-open > .cm-nav__dropdown { display: flex; }
.cm-nav__item--has-menu.is-open > .cm-nav__dropdown--grid { display: grid; }
/* While open, bridge the 28px gap between the link and the card so the pointer can cross it */
.cm-nav__item--has-menu.is-open::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 28px; }
.cm-nav__dd-item {
  display: flex; align-items: center; gap: 12px; height: 56px; padding: 8px 8px 8px 20px; border-radius: 12px;
  font: 400 16px/24px var(--cm-font); color: #000; text-decoration: none; white-space: nowrap; background: #fff;
}
.cm-nav__dropdown:not(.cm-nav__dropdown--grid) .cm-nav__dd-item { gap: 16px; }
.cm-nav__dd-icon {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 4px;
  background: #f5f5f5; box-shadow: inset 0 0 0 0.5px #d4d4d4; font-size: 16px; line-height: 24px;
}

/* Phone + tablet bar (the site shows its phone navbar below 1200px) */
@media (max-width: 1199.98px) {
  body { padding-top: 73px; }
  #main, .cm-doc__title { scroll-margin-top: 89px; }
  .cm-nav { padding: 20px 24px; min-height: 73px; }
  .cm-nav__toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    width: 30px; height: 30px; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; flex: none;
    -webkit-appearance: none; appearance: none;
  }
  .cm-nav__toggle-bar { display: block; width: 24px; height: 2px; border-radius: 20px; background: #000; transition: transform 160ms ease, opacity 160ms ease; }
  .cm-header.is-open .cm-nav__toggle-bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .cm-header.is-open .cm-nav__toggle-bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  /* The open menu: the bar stays put, the rest of the viewport becomes a white panel of 56px rows */
  .cm-nav__menu { display: none; }
  .cm-header.is-open { height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
  .cm-header.is-open .cm-nav { flex-wrap: wrap; }
  .cm-header.is-open .cm-nav__menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 24px; width: 100%; margin-top: 28px; padding-bottom: 40px; order: 10;
  }
  .cm-nav__links { flex-direction: column; align-items: stretch; gap: 24px; }
  .cm-nav__item { position: static; }
  .cm-nav__item--has-menu.is-open::after { display: none; }
  .cm-nav__item--has-menu { display: flex; flex-direction: column; gap: 8px; }
  .cm-nav__item--has-menu > .cm-nav__link { background: #e9f5ff; }
  .cm-nav__link { width: 100%; height: 56px; justify-content: center; background: #f7f7f7; border-radius: 12px; }
  .cm-nav__chevron { display: none; }
  .cm-nav__dropdown, .cm-nav__dropdown--grid, .cm-nav__item--has-menu.is-open > .cm-nav__dropdown, .cm-nav__item--has-menu.is-open > .cm-nav__dropdown--grid {
    position: static; transform: none; display: flex; flex-direction: column; gap: 4px; width: auto; padding: 0; box-shadow: none; border-radius: 0; background: transparent;
  }
  .cm-nav__dd-item { background: #f7f7f7; white-space: normal; }
  .cm-nav__dd-icon { display: none; }
  .cm-nav__item--pricing { order: 5; }
  .cm-nav__item--pricing::before { content: ""; display: block; height: 1px; background: var(--cm-line); margin-bottom: 24px; }
  .cm-nav__actions { flex-direction: column; align-items: stretch; gap: 24px; }
  .cm-nav__btn { width: 100%; }
  body.cm-menu-open { overflow: hidden; }
}
@media (max-width: 809.98px) {
  .cm-nav__wordmark { font-size: 20px; }
}

/* ---------- Buttons ---------- */
.cm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: var(--cm-radius);
  font: 700 15px/1 var(--cm-font); text-decoration: none; cursor: pointer; border: 0;
  color: #fff; background: var(--cm-blue); box-shadow: inset 0 0 20px 0 var(--cm-blue-glow);
  transition: transform 120ms ease, filter 120ms ease;
  white-space: normal; text-align: center; line-height: 1.2; padding-top: 10px; padding-bottom: 10px;
}
a:focus-visible { outline: 3px solid var(--cm-focus); outline-offset: 2px; border-radius: 4px; }
.cm-skip { position: absolute; left: 16px; top: -100px; z-index: 30; background: #fff; color: var(--cm-ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; box-shadow: var(--cm-shadow); }
.cm-skip:focus { top: 12px; }
.cm-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.cm-btn:focus-visible { outline: 3px solid var(--cm-focus); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.cm-btn:disabled, .cm-btn[aria-disabled="true"] { cursor: default; opacity: 0.7; }
.cm-btn:disabled.nf-generate--done { opacity: 1; }
.cm-btn:disabled:hover, .cm-btn[aria-disabled="true"]:hover { transform: none; filter: none; }
.cm-btn--soft { background: var(--cm-blue-soft); color: var(--cm-ink); box-shadow: none; }
.cm-btn--soft:hover { background: #dbeffe; }
.cm-btn--ghost { background: transparent; color: var(--cm-blue-ink); box-shadow: none; padding: 0 6px; }
.cm-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cm-btn-row--center { justify-content: center; }

/* ---------- Page layout ---------- */
.cm-main { flex: 1 0 auto; width: 100%; max-width: 1120px; margin: 0 auto; padding: 56px 24px 88px; }
.cm-main--narrow { max-width: 820px; }
.cm-hero { margin-bottom: 32px; }
.cm-section { margin-top: 40px; }
.cm-card {
  background: #fff; border: 1px solid var(--cm-line); border-radius: 16px; padding: 28px; box-shadow: var(--cm-shadow);
}
.cm-doc {
  background: var(--cm-paper); border: 1px solid var(--cm-paper-line); border-radius: 16px;
  padding: clamp(22px, 4vw, 44px); box-shadow: var(--cm-shadow); position: relative; overflow: hidden;
}
.cm-doc__head { border-bottom: 2px solid var(--cm-ink); padding-bottom: 14px; margin-bottom: 22px; }
.cm-doc__title { font-size: clamp(18px, 2.6vw, 24px); letter-spacing: 0; text-transform: uppercase; }
.cm-doc__meta { font-size: 13px; color: var(--cm-muted); }
.cm-doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.cm-doc dt { font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 0.06em; }
.cm-doc dd { margin: 0; }
@media (max-width: 560px) { .cm-doc dl { grid-template-columns: 1fr; gap: 4px; } .cm-doc dd { margin-bottom: 10px; } }
.cm-doc ol.cm-doc__items { padding-left: 1.4em; }
.cm-doc ol.cm-doc__items > li { margin-bottom: 14px; }
.cm-doc ol.cm-doc__items > li > strong { display: block; text-transform: uppercase; font-size: 13px; letter-spacing: 0.06em; }
.cm-stamp {
  display: inline-block; padding: 6px 12px; border: 3px solid var(--cm-red); color: var(--cm-red);
  font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; border-radius: 6px;
  transform: rotate(-6deg); opacity: 0.9; background: rgba(255,255,255,0.6);
}
.cm-stamp--corner { position: absolute; top: 22px; right: 22px; }
.cm-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.6; }
.cm-pill--present { background: var(--cm-green-soft); color: var(--cm-green); }
.cm-pill--absent { background: #eef0f3; color: var(--cm-muted); }
.cm-pill--blue { background: var(--cm-blue-soft); color: var(--cm-blue-ink); }
.cm-table { width: 100%; border-collapse: collapse; }
.cm-table th, .cm-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--cm-line); }
.cm-table th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cm-muted); }
.cm-transcript { font-family: var(--cm-mono); font-size: 14px; line-height: 1.7; }
.cm-transcript .t { color: var(--cm-muted); margin-right: 10px; }
.cm-transcript .s { font-weight: 700; margin-right: 6px; }
.cm-kbd-note { font-size: 13px; color: var(--cm-muted); }
.cm-input {
  width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--cm-line); border-radius: var(--cm-radius);
  font: 500 16px var(--cm-font); color: var(--cm-ink); background: #fff;
}
.cm-input:focus-visible { outline: 3px solid var(--cm-focus); outline-offset: 1px; border-color: var(--cm-blue); }
textarea.cm-input { padding: 14px 16px; min-height: 0; line-height: 1.6; resize: vertical; }
details.cm-details > summary { cursor: pointer; font-weight: 700; list-style: none; }
details.cm-details > summary::-webkit-details-marker { display: none; }
details.cm-details > summary::after { content: " +"; color: var(--cm-blue-ink); }
details.cm-details[open] > summary::after { content: " –"; }
.cm-tagline { font-weight: 800; color: var(--cm-ink); }
.cm-proof { font-size: 14px; color: var(--cm-muted); }

/* ---------- Footer (compact version of the site footer) ---------- */
.cm-footer { border-top: 1px solid var(--cm-line); padding: 48px 32px 40px; font-size: 14px; color: var(--cm-muted); }
.cm-footer__inner { max-width: 1216px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.cm-footer h4 { font-size: 16px; color: var(--cm-ink); margin-bottom: 10px; }
.cm-footer ul { list-style: none; padding: 0; margin: 0; }
.cm-footer li { margin-bottom: 8px; }
.cm-footer a { color: var(--cm-muted); text-decoration: none; }
.cm-footer a:hover { color: var(--cm-ink); text-decoration: underline; }
.cm-footer__contact p { margin-bottom: 6px; }
.cm-footer__legal { max-width: 1216px; margin: 32px auto 0; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; border-top: 1px solid var(--cm-line); padding-top: 20px; }
@media (max-width: 809px) { .cm-footer__inner { grid-template-columns: 1fr 1fr; } .cm-footer { padding: 36px 20px 28px; } }
@media (max-width: 480px) { .cm-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Motion + print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0.001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .cm-header, .cm-footer, .cm-no-print { display: none !important; }
  body { padding-top: 0; background: #fff; }
  .cm-main { padding: 0; max-width: none; }
  .cm-doc { box-shadow: none; border-color: #bbb; break-inside: avoid; }
}

/* ---------- 404 page: prominent lockup + transcript/minutes panels ---------- */
.nf-lockup { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 0 14px; line-height: 1; }
.nf-lockup__num { font-size: clamp(84px, 14vw, 128px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; color: var(--cm-blue); }
.nf-lockup__label { display: inline-block; font-size: clamp(14px, 2vw, 17px); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cm-blue-ink); background: var(--cm-blue-soft); border-radius: 999px; padding: 8px 18px; }
.nf-headline { font-size: clamp(24px, 3.6vw, 34px); letter-spacing: -0.03em; margin: 6px 0 12px; }
.nf-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; margin-top: 8px; }
@media (min-width: 810px) { .nf-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; } }
.nf-panel { padding: 24px; }
@media (max-width: 480px) { .nf-panel { padding: 20px; } }
.nf-label { display: block; margin-bottom: 14px; }
.nf-label__sub { text-transform: none; font-weight: 500; letter-spacing: 0.02em; color: var(--cm-muted); }
.nf-line { margin: 0 0 10px; overflow-wrap: anywhere; }
.nf-line:last-child { margin-bottom: 0; }
.nf-lines--staged .nf-line { opacity: 0; }
.nf-lines--staged .nf-line.is-in { opacity: 1; transition: opacity 240ms ease; }
.nf-rec { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cm-muted); margin-bottom: 14px; }
.nf-rec__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cm-red); flex: none; }
.nf-generate { margin-top: 20px; }
.nf-generate--done { background: var(--cm-green-soft); color: #12703c; box-shadow: none; cursor: default; }
.nf-generate--done:hover { filter: none; transform: none; }
.nf-docwrap { position: relative; }
.nf-doc { opacity: 1; visibility: visible; transition: opacity 280ms ease; }
.nf-panel--pending .nf-doc { opacity: 0; visibility: hidden; transition: none; }
.nf-placeholder { position: absolute; inset: 0; margin: 0; display: none; align-items: center; justify-content: center; text-align: center; color: var(--cm-muted); font-size: 15px; }
.nf-panel--pending .nf-placeholder { display: flex; }
.nf-doc .cm-doc__title:focus-visible { outline: 3px solid var(--cm-focus); outline-offset: 4px; }
.nf-doc ol.cm-doc__items > li { overflow-wrap: anywhere; }
.nf-links { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.nf-links li + li::before { content: "\00b7"; color: var(--cm-muted); margin-right: 10px; }
.nf-links a { font-weight: 700; }
.nf-cta { margin-top: 36px; text-align: center; }
.nf-cta .cm-tagline { margin: 6px 0 18px; }
.nf-report { margin-top: 22px; font-size: 14px; color: var(--cm-muted); }
@media (prefers-reduced-motion: reduce) { .nf-lines--staged .nf-line { opacity: 1 !important; } }
@media print {
  .nf-panel--pending .nf-doc { opacity: 1 !important; visibility: visible !important; }
  .nf-placeholder { display: none !important; }
  .nf-line { opacity: 1 !important; }
  .nf-generate, .nf-report { display: none !important; }
}

/* Phone number: vanity + dialable digits, inline in the contact list (see assets/site/brand.css). */
a.cm-tel > span { white-space: nowrap; }
a.cm-tel--inline > .cm-tel-digits { font-variant-numeric: tabular-nums; }
a.cm-tel--inline > .cm-tel-digits::before { content: "("; }
a.cm-tel--inline > .cm-tel-digits::after { content: ")"; }
