/* ==========================================================================
   cobaltcounsel.com — one hand-written stylesheet.

   Breakpoints (one scale, reconciled per plan §4):
     sm 640px   md 800px   lg 1100px   xl 1600px
   The old code had two disagreeing scales: variables.css used 1200 for `lg`
   and media.ts used 1100. Standardised on 1100, because `lg` is what flips
   layout structure (flex direction, grid columns) in the components — keeping
   that where it was matters more than where a padding token steps.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Spacing / grid tokens — from src/utils/variables.css
   -------------------------------------------------------------------------- */
:root {
  --spacingContent: 1rem;
  --spacingSection: 4rem;
  --spacingGap: 1rem;
  --spacingFooter: 6rem;

  --gridSplit: 1fr;
  --gridQuad: 1fr;
  --gridTriple: 1fr;
}

@media only screen and (min-width: 640px) {
  :root {
    --spacingContent: 2rem;
    --spacingSection: 4rem;
    --spacingGap: 1.5rem;
    --spacingFooter: 4rem;
  }
}

@media only screen and (min-width: 800px) {
  :root {
    --spacingContent: 2.5rem;
    --spacingSection: 5rem;
    --spacingGap: 2rem;

    --gridSplit: 1fr 1fr;
    --gridQuad: repeat(4, 1fr);
    --gridTriple: repeat(3, 1fr);
    --spacingFooter: 4rem;
  }
}

@media only screen and (min-width: 1100px) {
  :root {
    --spacingContent: 3.5rem;
    --spacingSection: 6rem;
    --spacingGap: 2.5rem;
    --spacingFooter: 6rem;
  }
}

@media only screen and (min-width: 1600px) {
  :root {
    --spacingContent: 5rem;
    --spacingSection: 8rem;
    --spacingGap: 3rem;
    --spacingFooter: 6rem;
  }
}

/* --------------------------------------------------------------------------
   Theme tokens — Pantone "Modern Harmony" palette (trial, 2026-09-29).
   Named swatches: Orange Pop 13-1145 TN, Star Sapphire 18-4041 TCX,
   Icy Morn 13-5306 TCX, Parakeet 17-5735 TCX, Aurora 12-0642 TCX. The
   text, ink and gray steps are derived from Star Sapphire, since the palette
   has no darks; every text colour here passes WCAG AA on white. The previous
   warm/amber palette is recorded in handoff/palette.tokens.json.
   -------------------------------------------------------------------------- */
:root {
  --color-primary: #ffba52; /* Orange Pop: CTAs, underlines, stat numbers */
  --color-secondary: #eef5f5; /* Icy Morn, tinted: page and band backgrounds */
  --color-tertiary: #b0d3d1; /* Icy Morn: pills, carousel dots */
  --color-heading: #386192; /* Star Sapphire: headings */
  --color-black: #14223a; /* ink, derived: dark bands, text on Orange Pop */
  --color-text: #2a3441; /* derived: body copy */
  --color-gray: #4e5a68; /* derived: secondary text */
  --color-light-gray: #5f6b79; /* derived: meta text, 4.5:1 on the tint */
  --color-hairline: #d6e5e4; /* derived from Icy Morn: borders, dividers */
  --color-verified: #008c69; /* Parakeet: review ticks and badges */
  --color-highlight: #eddd59; /* Aurora: the highlighter swash */
  --color-white: #ffffff;

  --space-xxs: 0.5rem;
  --space-xs: 1rem;
  --space-sm: 1.5rem;
  --space-md: 2.5rem;
  --space-lg: 5rem;
  --space-xl: 10rem;
  --space-xxl: 15rem;

  --radius-button: 4px;
  --transition: all 500ms ease;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  --line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Base — replaces typography.js and layout.ts's GlobalStyle

   The root font-size ramp is load-bearing: a lot of the site's proportions
   are rem-based off it. Values carried over verbatim from GlobalStyle.
   -------------------------------------------------------------------------- */
html {
  box-sizing: border-box;
  font: 125% / var(--line-height) var(--font-body);
  overflow-y: scroll;
  scroll-behavior: smooth;
}

@media (min-width: 480px) {
  html {
    font-size: 90%;
  }
}
@media (min-width: 600px) {
  html {
    font-size: 100%;
  }
}
@media (min-width: 1200px) {
  html {
    font-size: 125%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

body {
  margin: 0;
  color: var(--color-text);
  font-weight: 400;
  word-wrap: break-word;
  font-kerning: normal;
}

/* Type scale — the explicit equivalent of Typography.js's scaleRatio 3.5 */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1.5rem;
  color: inherit;
  font-weight: 500;
  line-height: 1;
  text-rendering: optimizeLegibility;
}

h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.12051rem;
}
h3 {
  font-size: 1.65054rem;
}
h4 {
  font-size: 1rem;
}
h5 {
  font-size: 0.77837rem;
}
h6 {
  font-size: 0.7rem;
  line-height: 1.5rem;
}

p,
ul,
ol {
  margin: 0 0 1.5rem;
}

ul,
ol {
  padding-left: 0;
  margin-left: 1.5rem;
}

li {
  margin-bottom: 0.75rem;
}

li > p:last-child,
p > *:last-child {
  margin-bottom: 0;
}

img {
  max-width: 100%;
  margin: 0 0 1.5rem;
  border-style: none;
  /* every <img> carries truthful width/height attributes so the browser can
     reserve the box; `height: auto` keeps them from fighting max-width */
  height: auto;
}

b,
strong {
  font-weight: 600;
}

small {
  font-size: 80%;
}

/* Underline-on-hover link, from atoms/link.ts */
a {
  color: var(--color-gray);
  padding: 0.25rem 0;
  position: relative;
  text-decoration: none;
}

a::after {
  content: "";
  border-bottom: solid 2px var(--color-primary);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s;
}

a:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   Layout primitive — from atoms/container.ts, `content` variant
   -------------------------------------------------------------------------- */
.content {
  align-items: center;
  display: block;
  gap: var(--spacingGap);
  height: 100%;
  margin: 0 auto;
  max-width: 105rem;
  padding: 0 var(--spacingContent) var(--spacingSection);
  position: relative;
  width: 100%;
}

/* two-column variant — Container's `gridSplit` prop */
.content--split {
  display: grid;
  grid-template-columns: var(--gridSplit);
}

/* --------------------------------------------------------------------------
   Skewed content band — from the ContentContainer in src/pages/index.ts.

   The two pseudo-elements are skewed slabs that inherit the band's own
   background, which is what produces the slanted top and bottom edges.

   In Gatsby this alternated via `&:nth-of-type(even)`, counting <section>
   siblings — so which bands got the flipped treatment depended on how many
   sections happened to precede them in the page. That is exactly the kind of
   action-at-a-distance worth losing: `--alt` is now stated on the element,
   and each page below sets it to match what the old selector actually
   resolved to on the live site.
   -------------------------------------------------------------------------- */
.band {
  padding-bottom: 1em;
}

.band::before,
.band::after {
  background: inherit;
  content: "";
  display: block;
  height: 50%;
  left: 0;
  position: absolute;
  right: 0;
  transform: skewY(-4.5deg);
  transform-origin: 100%;
  z-index: -1;
}

.band::before {
  top: 0;
}

.band::after {
  bottom: 0;
  border-bottom: 1px solid var(--color-black);
}

/* The variants compose. In the React source each page redeclared the whole
   band and then differed in one or two properties, and `nth-of-type(even)`
   decided which of those differences were live; these are those differences,
   named and applied by hand.

   --flip      art swaps sides (rtl, with the text put back to ltr)
   --tint      tinted ground and a hard top edge
   --gap       pushed down from whatever precedes it
   --noskew    square slabs instead of slanted ones
   --edgeless  no bottom rule, and owns its vertical padding */
.band--flip {
  direction: rtl;
}

.band--flip div {
  direction: ltr;
}

.band--tint {
  border-top: 1px solid var(--color-black);
  background-color: var(--color-secondary);
}

.band--gap {
  margin-top: 7rem;
}

/* the case-study pages use a slightly smaller gap than /policysaurus/ */
.band--gap-sm {
  margin-top: 5rem;
}

/* last band on a page, so it needs its own breathing room at the bottom */
.band--final {
  margin-bottom: 2rem;
}

.band--noskew::before,
.band--noskew::after {
  transform: none;
}

.band--edgeless {
  padding-top: var(--spacingSection);
  padding-bottom: 0;
}

.band--edgeless::after {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   Nav — from organisms/navigation.ts + organisms/productsDropdown.ts
   -------------------------------------------------------------------------- */
.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 1rem;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
}

@media (min-width: 1100px) {
  .nav {
    padding: 2rem;
  }
}

.logo {
  display: inline-block;
  flex: none;
  line-height: 0;
  width: 2rem;
  margin-right: 1.75rem;
  margin-bottom: 0;
  transition-duration: 0.2s;
}

.logo:hover {
  opacity: 0.8;
}

.logo::after {
  content: none;
}

.logo img {
  width: 100%;
  height: auto;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .logo {
    width: 2.5rem;
  }
}

.nav-links {
  display: flex;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding-left: 0;
  padding-top: 0;
}

@media (min-width: 800px) {
  .nav-links {
    padding-left: 2rem;
    padding-top: 0.5rem;
  }
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1rem;
  margin-right: 1.75rem;
}

/* <details> dropdown — works with no JS; src/ts/dropdown.ts only adds
   close-on-outside-click and close-on-Escape. */
.dropdown {
  display: inline-block;
  margin-right: 1.5rem;
  position: relative;
}

.dropdown summary {
  color: var(--color-gray);
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  list-style: none;
  padding: 0 0 5px;
}

.dropdown summary::-webkit-details-marker {
  display: none;
}

.dropdown-menu {
  background-color: var(--color-white);
  box-shadow: 0 8px 16px 0 rgb(20 34 58 / 0.15);
  min-width: 180px;
  position: absolute;
  z-index: 1;
}

.dropdown-menu a {
  color: black;
  display: block;
  margin-right: 0;
  padding: 12px 16px;
}

.dropdown-menu a::after {
  content: none;
}

.dropdown-menu a:hover {
  background-color: var(--color-secondary);
}

/* --------------------------------------------------------------------------
   Button — from atoms/button.ts. A plain anchor; the smooth scroll to #hash
   comes from `scroll-behavior` on <html>.
   -------------------------------------------------------------------------- */
.button {
  background-color: var(--color-primary);
  border-radius: var(--radius-button);
  color: var(--color-black);
  display: inline-block;
  font-weight: 500;
  padding: 0.75rem 2rem;
  transition: var(--transition);
}

.button:hover {
  filter: brightness(105%);
  box-shadow: 0 6px 24px rgb(255 186 82 / 0.4);
  cursor: pointer;
}

.button::after {
  content: none;
}

/* padded text column inside a band — from atoms/contentBlock.ts */
.content-block {
  padding: var(--spacingContent);
}

/* Small all-caps eyebrow above a heading — from atoms/subheading.ts */
.subheading {
  color: var(--color-gray);
  letter-spacing: 3px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Page header — from molecules/teamHeader.ts and molecules/sectionHeader.ts.
   Same shell; the --hero variant just gives the copy more of the row.
   -------------------------------------------------------------------------- */
.page-header {
  align-items: center;
  background-color: var(--color-secondary);
  display: flex;
  flex-direction: column;
  min-height: 80vh;
  padding: var(--spacingContent) var(--spacingContent) 0;
  position: relative;
}

@media (min-width: 640px) {
  .page-header {
    min-height: 80%;
  }
}

@media (min-width: 1100px) {
  .page-header {
    flex-direction: row-reverse;
  }
}

.page-header-image {
  display: block;
  flex-basis: 100%;
  width: 100%;
  padding: 4.5rem 0 0;
  margin-top: 1rem;
  text-align: right;
}

@media (min-width: 640px) {
  .page-header-image {
    padding: 1rem 0 0;
    width: 60%;
    flex-basis: 60%;
  }
}

/* the team header nudges its art down; the Policysaurus ones don't */
.page-header-image--flush {
  margin-top: 0;
}

.page-header-content {
  display: block;
  flex-basis: 100%;
  width: 100%;
}

@media (min-width: 1100px) {
  .page-header-content {
    width: 40%;
    flex-basis: 40%;
  }
}

.page-header-content h1 {
  margin-bottom: 3rem;
  font-size: 2rem;
}

@media (min-width: 1100px) {
  .page-header-content h1 {
    font-size: 3.5rem;
  }
}

/* the home hero gives the copy 55% and the art 45%, rather than 40/60 */
@media (min-width: 640px) {
  .page-header--hero .page-header-image {
    width: 45%;
    flex-basis: 45%;
  }
}

.page-header--hero .page-header-image {
  margin-top: 0;
}

@media (min-width: 1100px) {
  .page-header--hero .page-header-content {
    width: 55%;
    flex-basis: 55%;
  }
}

/* /testimonials/ — art leads at full width, copy takes 60% once there's room.
   Its flex-basis stays 100% at every width; only `width` changes. */
.page-header--wide-art .page-header-image {
  width: 60%;
  flex-basis: 100%;
  margin-top: 0;
  padding: 4.5rem 0 0;
  text-align: center;
}

@media (min-width: 1100px) {
  .page-header--wide-art .page-header-image {
    width: 100%;
  }

  .page-header--wide-art .page-header-content {
    width: 60%;
    flex-basis: 60%;
  }
}

.page-header-logo {
  width: 18rem;
  height: auto;
}

/* --------------------------------------------------------------------------
   Cobalt Lawyers header variant — wills / dispute / family-law.
   Different enough from the other two to get its own element names: it turns
   at `md` rather than `lg`, is centred until then, and splits 40/60.
   -------------------------------------------------------------------------- */
.page-header--product {
  min-height: 80vh;
}

@media (min-width: 800px) {
  .page-header--product {
    flex-direction: row-reverse;
  }
}

.page-header-art {
  display: block;
  flex-basis: 100%;
  width: 30%;
  padding: 4.5rem 0 0;
  text-align: center;
}

@media (min-width: 640px) {
  .page-header-art {
    width: 30%;
    flex-basis: 30%;
  }
}

@media (min-width: 800px) {
  .page-header-art {
    padding: 3rem;
    width: 40%;
    flex-basis: 40%;
    text-align: left;
  }
}

.page-header-copy {
  display: block;
  flex-basis: 100%;
  width: 100%;
  text-align: center;
}

@media (min-width: 800px) {
  .page-header-copy {
    width: 60%;
    flex-basis: 60%;
    text-align: left;
  }
}

.page-header-copy h3 {
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Three-up section grid — shared by sectionSetup, sectionTestimonial and
   teamSetup, which all used a byte-identical Setup/Step/Seperator trio.
   Only the title treatment differs, so that stays a separate class.
   -------------------------------------------------------------------------- */
.section-intro {
  text-align: center;
}

.section-intro h2 {
  margin-bottom: 0;
}

@media (min-width: 800px) {
  .section-intro h2 {
    margin-bottom: 2rem;
  }
}

.section-intro--spaced {
  margin-top: 6rem;
}

.steps {
  display: grid;
  grid-template-columns: var(--gridTriple);
}

@media (min-width: 1100px) {
  .steps {
    padding: 1rem 0;
  }
}

.step {
  align-items: center;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
}

@media (min-width: 800px) {
  .step {
    padding: 1rem;
  }
}

.step-title {
  color: var(--color-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 3rem 0 1rem;
  text-align: center;
}

@media (min-width: 800px) {
  .step-title {
    min-height: 32px;
    margin-bottom: 3rem;
  }
}

/* In the multi-column layout, titled steps share row lines with their
   neighbours (subgrid), so a title that wraps to two lines doesn't push its
   own paragraph below the others in the row. */
@media (min-width: 640px) {
  .step:has(> .step-title) {
    align-content: start;
    align-items: start;
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    justify-items: center;
  }

  .step:has(> .step-title):has(> .step-icon) {
    grid-row: span 3;
  }

  .step > .step-title {
    align-self: center;
  }
}

/* Highlighter-pen swash on the text itself: an inline background covering the
   lower half of each line, cloned per line so a wrapped title gets one swash
   per line instead of a single bar across the gap. */
.step-title > span {
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--color-highlight) 75%, transparent) 55%,
    transparent 55%
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.4rem;
}

/* decorative squiggle, hung outside the step. Hidden until there's room. */
.step-flourish {
  display: none;
  position: absolute;
  right: -22%;
  top: 5%;
  width: 180px;
  height: auto;
  margin-bottom: 0;
}

.step:nth-of-type(2) .step-flourish {
  top: 25%;
}

@media (min-width: 1100px) {
  .step-flourish {
    display: block;
  }
}

/* the testimonials 3-up sits tight against its neighbours */
@media (min-width: 1100px) {
  .steps--flush {
    padding: 0;
  }
}

/* On /testimonials/ the three group titles are empty divs — the swash *is* the
   design element, a full-width orange bar over each paragraph. Empty in the
   original markup too, so this stays a presentational div rather than becoming
   a heading with no text in it. */
.step-rule {
  align-items: center;
  color: var(--color-heading);
  display: flex;
  font-size: 1.5rem;
  font-weight: 700;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  width: 100%;
}

@media (min-width: 800px) {
  .step-rule {
    height: 32px;
    margin-bottom: 3rem;
  }
}

.step-rule::after {
  content: "";
  display: block;
  position: absolute;
  width: calc(100% + 0.8rem);
  left: -0.4rem;
  bottom: -0.2rem;
  height: calc(50% + 0.2rem);
  z-index: -1;
  opacity: 0.6;
  background: var(--color-primary);
}

.steps-cta {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
}

@media (min-width: 800px) {
  .steps-cta {
    margin-top: 0;
  }
}

/* --------------------------------------------------------------------------
   Team page — from molecules/teamSetup.ts
   -------------------------------------------------------------------------- */
.profile-head {
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .profile-head {
    flex-direction: row;
    gap: 2rem;
  }
}

.profile-image {
  border-radius: 50%;
  height: 7rem;
  width: 7rem;
  border: 4px solid var(--color-primary);
}

.profile-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 640px) {
  .profile-title h3 {
    margin-bottom: 0.5rem;
  }
}

/* Same shell as .step-title, but this one keeps its fixed height and its
   swash at every width — the group names are short enough not to wrap. */
.team-group-title {
  align-items: center;
  color: var(--color-heading);
  display: flex;
  font-size: 1.5rem;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  margin: 3rem 0 2rem;
  position: relative;
}

/* the highlighter-pen swash behind each group title */
.team-group-title::after {
  content: "";
  position: absolute;
  width: calc(100% + 0.8rem);
  left: -0.4rem;
  bottom: -0.2rem;
  height: calc(50% + 0.2rem);
  z-index: -1;
  opacity: 0.6;
  background: var(--color-highlight);
}

.team-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-list li {
  margin-bottom: 1.5rem;
}

.team-list h4 {
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.team-list p {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Policysaurus — from molecules/policysaurus/*.ts
   -------------------------------------------------------------------------- */
/* centred lead-in above a section */
.intro-centered {
  text-align: center;
}

.intro-centered h2 {
  margin-bottom: 0;
}

.intro-centered--spaced {
  margin: var(--spacingContent);
}

.intro-centered--tall {
  margin-top: 6rem;
}

.intro-block--centered {
  text-align: center;
  margin: var(--spacingContent);
}

/* the scrolling list of research collections */
.collections-list {
  overflow-y: auto;
  max-height: 400px;
  padding: 0 var(--spacingContent);
  margin-bottom: var(--spacingContent);
  border: 1px solid var(--color-gray);
  background-color: var(--color-white);
}

.collections-list p {
  margin-bottom: 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-gray);
}

.collections-list p:last-child {
  border-bottom: none;
}

/* "How It Works" — same step grid, but each step leads with a small figure */
.steps--split {
  display: grid;
  grid-template-columns: var(--gridSplit);
}

@media (min-width: 1100px) {
  .steps--split {
    padding: 1rem 0;
  }
}

.step-figure {
  max-width: 10rem;
}

/* "See it in Action" — a narrow centred column of captioned screenshots */
.action-block {
  padding: var(--spacingContent);
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}

.action-image {
  border: 2px solid var(--color-primary);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

/* a section that runs straight into the next one */
.content--flush {
  padding-bottom: 0;
}

/* the sustainability header leaves room under its art */
.page-header-image--padded {
  margin-top: 0;
  padding: 4.5rem 0 2rem;
}

/* full-width case-study buttons */
.case-study {
  margin-top: 5rem;
  margin-bottom: 2rem;
}

.button--wide {
  display: block;
  width: 19rem;
}

/* the white-ground header variant used by the Policysaurus case studies */
.page-header--white {
  background-color: var(--color-white);
}

/* --------------------------------------------------------------------------
   /testimonials/ quote list — from src/pages/testimonials.ts.
   Its ContentContainer defined :after/:before rules but never gave them a
   `content`, so the skewed band never actually rendered there. All that was
   live is the padding change, so that's all this carries over.
   -------------------------------------------------------------------------- */
.quote-list {
  padding-bottom: 0;
}

.quote {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.quote-source {
  font-size: 0.75rem;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Cobalt Lawyers body copy — from wills/dispute/familyLaw *Setup.ts.
   These pages are just a stack of oversized intro paragraphs, the last of
   which sits beside an illustration.
   -------------------------------------------------------------------------- */
.intro-block {
  line-height: 1.25;
}

.assist-block {
  display: flex;
}

.assist-block h3 {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* the illustration is decorative — it stays out of the way on small screens */
.assist-image {
  display: none;
  padding: 3rem;
  width: 40%;
}

@media (min-width: 800px) {
  .assist-image {
    display: block;
  }
}

@media (min-width: 1600px) {
  .assist-image {
    width: 30%;
  }
}

/* --------------------------------------------------------------------------
   Checkout / Calendly section — from molecules/sectionCheckout.ts
   -------------------------------------------------------------------------- */
.checkout {
  margin-bottom: var(--spacingContent);
}

.checkout-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0;
  object-fit: cover;
}

@media (min-width: 1100px) {
  .checkout-image {
    max-height: 200px;
  }
}

.checkout-body {
  background-color: var(--color-black);
  border-radius: var(--radius-button);
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 100%;
  position: relative;
  width: 100%;
}

@media (min-width: 1100px) {
  .checkout-body {
    align-items: start;
    flex-direction: row;
  }
}

.checkout-copy {
  padding: var(--spacingContent);
  width: 100%;
}

@media (min-width: 1100px) {
  .checkout-copy {
    width: 50%;
    padding-top: 25px;
  }
}

/* Muted text on the ink band uses Icy Morn: the light gray is tuned for
   light backgrounds and drops to ~3:1 here. */
.checkout-copy h6 {
  color: var(--color-tertiary);
  letter-spacing: 3px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.checkout-copy h1 {
  color: var(--color-white);
  font-size: 2rem;
}

.checkout-copy p {
  color: var(--color-tertiary);
}

.checkout-widget {
  min-width: 320px;
  padding: var(--spacingContent);
  width: 100%;
}

/* Calendly's iframe fills its parent, so give it room once it's mounted. */
.checkout-widget:has(iframe) {
  height: 700px;
}

@media (min-width: 1100px) {
  .checkout-widget {
    width: 50%;
  }
}

.checkout-widget > a,
.calendly-note {
  color: var(--color-white);
}

.calendly-note {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Once the button is live, it replaces the fallback link. */
.calendly-load:not([hidden]) ~ a {
  display: none;
}

/* --------------------------------------------------------------------------
   Footer — from organisms/footer.ts + atoms/linkTop.ts
   -------------------------------------------------------------------------- */
.footer {
  align-items: start;
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 var(--spacingContent);
  padding-bottom: var(--spacingFooter);
  position: relative;
}

@media (min-width: 1100px) {
  .footer {
    grid-template-columns: 1fr 2fr 1fr;
  }
}

.footer-logo {
  position: relative;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.footer-contact a {
  color: var(--color-gray);
  margin-bottom: 0;
}

.footer-contact a:hover {
  color: var(--color-black);
}

.footer-copyright {
  padding-bottom: 2rem;
}

/* "Top" puck. A plain anchor to #top — the smooth scroll is
   `scroll-behavior` on <html>, which respects prefers-reduced-motion. */
.link-top {
  align-items: center;
  background-color: var(--color-secondary);
  border-radius: 50rem;
  bottom: 2rem;
  display: flex;
  height: 120px;
  justify-content: center;
  position: absolute;
  right: 1rem;
  text-align: center;
  transition: var(--transition);
  width: 120px;
}

.link-top:hover {
  background-color: var(--color-primary);
  cursor: pointer;
}

.link-top::after {
  content: none;
}

.link-top h5 {
  margin: 0;
}

/* --------------------------------------------------------------------------
   /transactions/ — a long ruled list of matters, from src/pages/transactions.ts
   -------------------------------------------------------------------------- */
.transaction {
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-black);
}

/* --------------------------------------------------------------------------
   Diligence Monster — from molecules/diligence/*.ts and slideshow.css
   -------------------------------------------------------------------------- */
.page-header--monster {
  min-height: auto;
  padding: var(--spacingContent);
}

@media (min-width: 800px) {
  .page-header--monster {
    flex-direction: row-reverse;
    padding-top: 7rem;
    gap: 2rem;
  }
}

.page-header--monster .page-header-image {
  width: 70%;
  flex-basis: auto;
  margin-top: 0;
  padding: 4.5rem 0 0;
  text-align: right;
}

@media (min-width: 640px) {
  .page-header--monster .page-header-image {
    width: 70%;
    flex-basis: auto;
    padding: 0;
  }
}

.page-header--monster .page-header-content {
  width: auto;
  flex-basis: auto;
}

@media (min-width: 1100px) {
  .page-header--monster .page-header-content {
    width: auto;
    flex-basis: auto;
    text-align: left;
  }
}

.page-header--monster h2 {
  font-size: 1.5rem;
  text-align: left;
}

@media (min-width: 1100px) {
  .page-header--monster h2 {
    font-size: 2rem;
  }
}

/* wordmark and mascot side by side */
.monster-title {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

@media (min-width: 640px) {
  .monster-title {
    justify-content: center;
  }
}

@media (min-width: 800px) {
  .monster-title {
    justify-content: flex-start;
  }
}

.monster-title h1 {
  font-size: 2rem;
  width: 10rem;
}

.monster-title img {
  max-height: 4rem;
  width: auto;
}

@media (min-width: 1100px) {
  .monster-title h1 {
    font-size: 3rem;
    width: 15rem;
  }

  .monster-title img {
    max-height: 6rem;
  }
}

.monster-headline {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* the five capability tiles */
.step-icon {
  width: 10rem;
}

.step-icon img {
  width: 60%;
}

.intro-centered--wide h2 {
  margin-bottom: 0;
}

@media (min-width: 800px) {
  .intro-centered--wide h2 {
    margin-bottom: 5rem;
  }
}

.steps--pair {
  display: grid;
  grid-template-columns: var(--gridSplit);
  width: 70%;
  column-gap: 5%;
  margin: 0 auto;
}

@media (min-width: 1100px) {
  .steps--pair {
    padding: 1rem 0;
  }
}

.conclusion {
  text-align: center;
}

.conclusion h2 {
  margin-top: 2rem;
  line-height: 1.5;
}

.cta-center {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: var(--spacingSection);
}

/* --- the video carousel ---------------------------------------------------
   A scroll-snap strip. It scrolls with no JS; carousel.ts only adds the
   prev/next buttons and keeps the dots in step. */
.carousel {
  padding-top: 5rem;
  border-top: 1px solid black;
}

.carousel-viewport {
  position: relative;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.carousel-slide video {
  display: block;
  width: 100%;
  max-height: 80vh;
  margin-bottom: 0;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  margin-top: -22px;
  width: auto;
  padding: 16px;
  border: none;
  background: transparent;
  color: var(--color-primary);
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.carousel-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.carousel-prev:active,
.carousel-next:active {
  color: white;
  background-color: color-mix(in srgb, var(--color-heading) 80%, transparent);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.carousel-dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  padding: 0;
  background-color: var(--color-tertiary);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.6s ease;
}

.carousel-dot::after {
  content: none;
}

.carousel-dot.is-active {
  background-color: var(--color-heading);
}

@media screen and (max-width: 750px) {
  .carousel-dots {
    gap: 0.5rem;
  }
}

@media (hover: hover) {
  .carousel-dot:hover {
    background-color: var(--color-heading);
  }

  .carousel-prev:hover,
  .carousel-next:hover {
    color: white;
    background-color: color-mix(in srgb, var(--color-primary) 80%, transparent);
  }

  .features-toggle:hover,
  .feature-link:hover {
    background-color: var(--color-heading);
    color: white;
    border-color: var(--color-heading);
  }
}

/* FEATURES accordion — a real <details>, open/close with no JS */
.features {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.features-toggle {
  align-self: center;
  display: inline-block;
  background-color: var(--color-primary);
  border-radius: var(--radius-button);
  color: var(--color-black);
  font-weight: 500;
  padding: 0.75rem 2rem;
  cursor: pointer;
  list-style: none;
  transition: var(--transition);
}

.features-toggle::-webkit-details-marker {
  display: none;
}

.features-toggle:hover {
  filter: brightness(105%);
  box-shadow: 0 6px 24px rgb(255 186 82 / 0.4);
}

.feature-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  gap: 1rem;
  max-width: 35rem;
}

.feature-link {
  background-color: var(--color-primary);
  border-radius: var(--radius-button);
  color: var(--color-black);
  font-weight: 500;
  padding: 0.75rem 2rem;
  text-align: center;
  transition: var(--transition);
}

.feature-link::after {
  content: none;
}

.feature-link:hover {
  filter: brightness(105%);
  box-shadow: 0 6px 24px rgb(255 186 82 / 0.4);
  cursor: pointer;
}

/* the closing infographic */
.infographic {
  padding: 5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--color-secondary);
}

.infographic img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  margin-bottom: 0;
}

/* the Diligence Monster intro band runs flush into the section below it */
.diligence-intro {
  padding-bottom: 0;
  margin-bottom: 12rem;
}

/* ==========================================================================
   Consolidated site — first pass (branch `consolidation`)
   Homepage sections, Insights and posts. Same tokens and type scale as the
   rest of the site; nothing above this line was changed for it.
   ========================================================================== */

/* Placeholder for a fact we don't have yet (patent number etc.). Loud on
   purpose, so it can't ship unnoticed. */
mark.tbd {
  background: none;
  border: 1px dashed var(--color-primary);
  border-radius: 3px;
  color: var(--color-gray);
  padding: 0 0.3em;
}

/* Full-bleed background for a section whose content stays in .content's
   column: the shadow paints the background out to the viewport edges and
   the clip keeps it from bleeding vertically. */
.tint {
  background: var(--color-secondary);
  box-shadow: 0 0 0 100vmax var(--color-secondary);
  clip-path: inset(0 -100vmax);
  padding-top: var(--spacingSection);
}

.nav-cta {
  display: none;
  font-size: 16px;
  margin-left: auto;
  padding: 0.5rem 1.25rem;
}

@media (min-width: 1100px) {
  .nav-cta {
    display: inline-block;
  }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  background: var(--color-secondary);
  display: grid;
  gap: var(--spacingGap);
  padding: 8rem var(--spacingContent) var(--spacingSection);
}

@media (min-width: 1100px) {
  .hero {
    align-items: center;
    grid-template-columns: 1.1fr 1fr;
    padding-top: 10rem;
  }
}

.hero h1 {
  color: var(--color-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  max-width: 16ch;
}

.hero-lede {
  color: var(--color-gray);
  font-size: 1.1rem;
  max-width: 38rem;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-secondary {
  font-weight: 500;
}

.hero-sample {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgb(20 34 58 / 0.12);
  margin: 0;
  padding: 1.25rem 1.5rem;
}

.hero-sample figcaption {
  border-bottom: 1px solid var(--color-secondary);
  color: var(--color-heading);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8rem;
  font-weight: 600;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
}

.hero-sample-status {
  color: var(--color-light-gray);
  font-weight: 400;
}

.hero-sample ol {
  list-style: none;
  margin: 0;
}

.hero-sample li {
  align-items: center;
  border-bottom: 1px solid var(--color-secondary);
  display: grid;
  gap: 0.25rem 1rem;
  grid-template-columns: 1fr auto;
  margin: 0;
  padding: 0.85rem 0;
}

.hero-sample li:last-child {
  border-bottom: 0;
}

.hero-sample-doc {
  color: var(--color-light-gray);
  font-size: 0.7rem;
  grid-column: 1;
}

.hero-sample-find {
  color: var(--color-black);
  font-size: 0.85rem;
  grid-column: 1;
}

.hero-sample-check {
  background: color-mix(in srgb, var(--color-verified) 12%, transparent);
  border-radius: 50rem;
  color: var(--color-black);
  font-size: 0.7rem;
  font-weight: 600;
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 0.2rem 0.7rem;
}

.hero-sample-check::before {
  color: var(--color-verified);
  content: "✓ ";
}

/* --- Proof strip ----------------------------------------------------------- */
.proof {
  background: var(--color-black);
  color: var(--color-white);
  display: grid;
  gap: 1.5rem var(--spacingGap);
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: var(--spacingSection);
  padding: 2.5rem var(--spacingContent);
}

@media (min-width: 1100px) {
  .proof {
    grid-template-columns: repeat(4, 1fr);
  }
}

.proof div {
  display: flex;
  flex-direction: column;
}

.proof strong {
  color: var(--color-primary);
  font-size: 1.75rem;
  font-weight: 700;
}

.proof span {
  color: rgb(255 255 255 / 0.75);
  font-size: 0.85rem;
}

.proof mark.tbd {
  color: rgb(255 255 255 / 0.75);
}

/* --- Why us ---------------------------------------------------------------- */
.shift {
  display: grid;
  gap: var(--spacingGap);
}

@media (min-width: 1100px) {
  .shift {
    grid-template-columns: 1fr 1fr;
  }
}

.shift h2,
.services h2,
.integrations h2,
.how h2,
.platform h2,
.insights-teaser h2 {
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.15;
}

.shift-intro p {
  color: var(--color-gray);
}

.shift-split {
  display: grid;
  gap: var(--spacingGap);
}

@media (min-width: 640px) {
  .shift-split {
    grid-template-columns: 1fr 1fr;
  }
}

.shift-split > div {
  border-top: 3px solid var(--color-primary);
  padding-top: 1rem;
}

.shift-split > div + div {
  border-top-color: var(--color-heading);
}

.checklist {
  list-style: none;
  margin-left: 0;
}

.checklist li {
  color: var(--color-gray);
  padding-left: 1.5rem;
  position: relative;
}

.checklist li::before {
  color: var(--color-verified);
  content: "✓";
  font-weight: 700;
  left: 0;
  position: absolute;
}

/* --- Current, cited, on the record (change control) ------------------------ */
.current {
  display: grid;
  gap: var(--spacingGap);
}

@media (min-width: 1100px) {
  .current {
    align-items: center;
    grid-template-columns: 1fr 1fr;
  }
}

.current h2 {
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.15;
}

.current-copy > p {
  color: var(--color-gray);
}

.current-points {
  list-style: none;
  margin-left: 0;
}

.current-points li {
  border-left: 3px solid var(--color-verified);
  color: var(--color-gray);
  padding-left: 1rem;
}

.current-points strong {
  color: var(--color-heading);
}

.law-diff {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgb(20 34 58 / 0.1);
  margin: 0;
  padding: 1.25rem 1.5rem;
}

.law-diff figcaption {
  border-bottom: 1px solid var(--color-hairline);
  color: var(--color-heading);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8rem;
  font-weight: 600;
  gap: 0.5rem;
  justify-content: space-between;
  padding-bottom: 0.75rem;
}

.law-diff-range {
  color: var(--color-black);
  font-variant-numeric: tabular-nums;
}

.law-diff ol {
  list-style: none;
  margin: 0;
}

.law-diff li {
  border-bottom: 1px solid var(--color-hairline);
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 1rem 0;
}

.law-diff-kind {
  border-radius: 50rem;
  color: var(--color-black);
  font-size: 0.65rem;
  font-weight: 700;
  justify-self: start;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.6rem;
  text-transform: uppercase;
}

.law-diff-kind--amended {
  background: color-mix(in srgb, var(--color-primary) 35%, transparent);
}

.law-diff-kind--added {
  background: color-mix(in srgb, var(--color-verified) 18%, transparent);
}

.law-diff-what {
  color: var(--color-black);
  font-size: 0.9rem;
}

.law-diff cite {
  color: var(--color-light-gray);
  font-size: 0.75rem;
  font-style: normal;
}

.law-diff cite::before {
  content: "§ ";
  color: var(--color-verified);
  font-weight: 700;
}

.law-diff-note {
  color: var(--color-light-gray);
  font-size: 0.7rem;
  margin: 0.75rem 0 0;
}

/* --- Services -------------------------------------------------------------- */
.service-grid {
  display: grid;
  gap: var(--spacingGap);
}

@media (min-width: 800px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: 8px;
  border-top: 4px solid var(--color-primary);
  color: inherit;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.service-card::after {
  content: none;
}

.service-card:hover {
  box-shadow: 0 16px 40px rgb(20 34 58 / 0.1);
  transform: translateY(-2px);
}

.service-card h3 {
  color: var(--color-heading);
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--color-gray);
}

.service-more {
  color: var(--color-heading);
  font-weight: 600;
  margin-top: auto;
}

.service-more::after {
  content: " →";
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1.5rem;
}

.tags li {
  background: var(--color-secondary);
  border-radius: 50rem;
  color: var(--color-gray);
  font-size: 0.7rem;
  margin: 0;
  padding: 0.15rem 0.65rem;
}

/* --- How we work ----------------------------------------------------------- */
.how-steps {
  counter-reset: step;
  display: grid;
  gap: var(--spacingGap);
  list-style: none;
  margin: 0 0 var(--spacingSection);
}

@media (min-width: 800px) {
  .how-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how-steps li {
  counter-increment: step;
  margin: 0;
}

.how-steps li::before {
  color: var(--color-primary);
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.how-steps h4,
.pillars h4 {
  color: var(--color-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.how-steps p,
.pillars p {
  color: var(--color-gray);
}

.pricing {
  display: grid;
  gap: var(--spacingGap);
}

@media (min-width: 1100px) {
  .pricing {
    align-items: start;
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-points {
  list-style: none;
  margin-left: 0;
}

.pricing-points li {
  border-left: 3px solid var(--color-primary);
  color: var(--color-gray);
  padding-left: 1rem;
}

.pricing-points strong {
  color: var(--color-heading);
}

.pricing-card {
  background: var(--color-white);
  border-radius: 8px;
  margin: 0;
  padding: 1.5rem;
}

.pricing-card figcaption {
  color: var(--color-light-gray);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.pricing-card dl {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 1rem;
}

.pricing-card dt {
  color: var(--color-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.pricing-card dd {
  color: var(--color-gray);
  font-size: 0.8rem;
  margin: 0.25rem 0 0;
}

.pricing-card small {
  color: var(--color-light-gray);
}

/* --- Platform -------------------------------------------------------------- */
.platform .section-intro p {
  color: var(--color-gray);
  margin: 0 auto;
  max-width: 44rem;
}

.pillars {
  display: grid;
  gap: var(--spacingGap);
  list-style: none;
  margin: var(--spacingGap) 0 0;
}

@media (min-width: 800px) {
  .pillars {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillars li {
  border-top: 1px solid var(--color-heading);
  margin: 0;
  padding-top: 1rem;
}

/* --- Integrations: mock screenshots + list --------------------------------- */
.integrations .section-intro p {
  color: var(--color-gray);
  margin: 0 auto;
  max-width: 44rem;
}

/* Two tilted "screenshots" that overlap slightly on wide screens and
   straighten on hover. */
.mock-stage {
  display: grid;
  gap: 2.5rem;
  margin: var(--spacingSection) auto;
  max-width: 64rem;
  perspective: 1600px;
}

@media (min-width: 900px) {
  .mock-stage {
    gap: 1.5rem;
    grid-template-columns: 1fr 1fr;
  }
}

/* min-width: 0 lets the cards shrink below their one-line URLs on phones
   (a grid item otherwise refuses to be narrower than its content). */
.mock {
  margin: 0;
  min-width: 0;
  transition: rotate 400ms ease, translate 400ms ease;
}

@media (min-width: 900px) {
  .mock--left {
    rotate: -2.5deg;
    z-index: 1;
  }

  .mock--right {
    rotate: 2deg;
    translate: 0 2.5rem;
  }

  .mock:hover {
    rotate: 0deg;
    z-index: 2;
  }
}

.mock figcaption {
  color: var(--color-light-gray);
  font-size: 0.8rem;
  margin-top: 1rem;
  text-align: center;
}

.mock-window {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  box-shadow:
    0 2px 6px rgb(20 34 58 / 0.06),
    0 30px 60px rgb(20 34 58 / 0.18);
  color: var(--color-black);
  font-size: 0.8rem;
  overflow: hidden;
}

.mock-window--dark {
  background: #0f1b2e;
  border-color: #22324c;
  color: #dce8e7;
}

.mock-bar {
  align-items: center;
  background: var(--color-secondary);
  border-bottom: 1px solid var(--color-hairline);
  display: flex;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
}

.mock-window--dark .mock-bar {
  background: #14223a;
  border-color: #22324c;
}

.mock-bar span {
  background: var(--color-hairline);
  border-radius: 50%;
  height: 0.6rem;
  width: 0.6rem;
}

.mock-window--dark .mock-bar span {
  background: #2c3d58;
}

.mock-bar em {
  color: var(--color-light-gray);
  font-size: 0.7rem;
  font-style: normal;
  margin-left: 0.5rem;
}

.mock-window--dark .mock-bar em {
  color: #8fa3b8;
}

.mock-body {
  padding: 1.25rem 1.4rem 1.4rem;
}

.mock-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.mock-body label {
  color: var(--color-gray);
  display: block;
  font-size: 0.7rem;
  margin: 0.8rem 0 0.35rem;
}

.mock-window--dark label {
  color: #8fa3b8;
}

.mock-field {
  border: 1px solid var(--color-hairline);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0.7rem;
}

.mock-window--dark .mock-field {
  background: #14223a;
  border-color: #2c3d58;
}

/* Mono values stay on one line and ellipsise, like a real input field;
   the Copy label never wraps. */
.mock-field--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
}

.mock-field--mono span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-field b {
  flex: none;
  color: var(--color-tertiary);
  font-family: var(--font-body);
  font-weight: 600;
  padding-left: 0.5rem;
}

.mock-note {
  background: color-mix(in srgb, var(--color-verified) 10%, transparent);
  border-radius: 6px;
  color: var(--color-gray);
  font-size: 0.7rem;
  margin-top: 0.9rem;
  padding: 0.5rem 0.7rem;
}

.mock-scopes {
  list-style: none;
  margin: 0;
}

.mock-scopes li {
  color: #8fa3b8;
  margin: 0 0 0.4rem;
  padding-left: 1.5rem;
  position: relative;
}

.mock-scopes li::before {
  border: 1.5px solid #3b4d69;
  border-radius: 4px;
  content: "";
  height: 0.9rem;
  left: 0;
  position: absolute;
  top: 0.15rem;
  width: 0.9rem;
}

.mock-scopes li.on {
  color: #dce8e7;
}

.mock-scopes li.on::before {
  background: var(--color-tertiary);
  border-color: var(--color-tertiary);
}

.mock-scopes li.on::after {
  color: var(--color-black);
  content: "✓";
  font-size: 0.65rem;
  font-weight: 700;
  left: 0.2rem;
  position: absolute;
  top: 0.1rem;
}

.mock-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1.2rem;
}

.mock-btn {
  border: 1px solid var(--color-hairline);
  border-radius: 6px;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
}

.mock-window--dark .mock-btn {
  border-color: #3b4d69;
}

.mock-btn--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-black);
}

.mock-window--dark .mock-btn--primary {
  background: var(--color-tertiary);
  border-color: var(--color-tertiary);
}

.integration-list {
  display: grid;
  gap: 1rem var(--spacingGap);
  list-style: none;
  margin: 0;
}

@media (min-width: 800px) {
  .integration-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.integration-list li {
  border-top: 1px solid var(--color-hairline);
  color: var(--color-gray);
  font-size: 0.9rem;
  margin: 0;
  padding-top: 0.9rem;
}

.integration-list strong {
  color: var(--color-heading);
  display: block;
  margin-bottom: 0.25rem;
}

/* --- Quotes ---------------------------------------------------------------- */
.quotes {
  display: grid;
  gap: var(--spacingGap);
}

@media (min-width: 1100px) {
  .quotes {
    grid-template-columns: 1fr 1fr;
  }
}

.quotes figure {
  margin: 0;
}

.quotes blockquote {
  border-left: 3px solid var(--color-primary);
  color: var(--color-heading);
  font-size: 1.05rem;
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.quotes figcaption {
  color: var(--color-light-gray);
  font-size: 0.8rem;
  padding-left: 1.5rem;
}

.quotes-more {
  font-weight: 600;
  justify-self: start;
}

/* --- Insights -------------------------------------------------------------- */
.insights {
  padding-top: 8rem;
}

.insights h1 {
  color: var(--color-heading);
  font-weight: 700;
}

.insights .section-intro p {
  color: var(--color-gray);
}

.post-grid {
  display: grid;
  gap: var(--spacingGap);
  margin-bottom: var(--spacingGap);
}

@media (min-width: 800px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-card {
  border-top: 1px solid var(--color-hairline);
  color: inherit;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0;
}

.post-card::after {
  content: none;
}

.post-card time,
.post-card-author {
  color: var(--color-light-gray);
  font-size: 0.75rem;
}

.post-card h3 {
  color: var(--color-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0.5rem 0;
}

.post-card:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-decoration-thickness: 2px;
}

.post-card p {
  color: var(--color-gray);
  font-size: 0.85rem;
}

.pager {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.pager span {
  color: var(--color-light-gray);
}

/* --- A post ---------------------------------------------------------------- */
.post {
  margin: 0 auto;
  max-width: 42rem;
  padding: 8rem var(--spacingContent) var(--spacingSection);
}

.post-header h1 {
  color: var(--color-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
}

.post-meta {
  color: var(--color-light-gray);
  font-size: 0.85rem;
}

.post-body {
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Some old posts open with their own markdown `#` heading; keep it below the
   page title in the hierarchy. */
.post-body h1,
.post-body h2,
.post-body h3 {
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2.5rem;
}

.post-body h1,
.post-body h2 {
  font-size: 1.5rem;
}

.post-body h3 {
  font-size: 1.2rem;
}

.post-body a {
  color: var(--color-heading);
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
}

.post-body a::after {
  content: none;
}

.post-body ul,
.post-body ol {
  margin-left: 1.5rem;
}

.post-body blockquote {
  border-left: 3px solid var(--color-primary);
  color: var(--color-gray);
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

.post-body table {
  border-collapse: collapse;
  display: block;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.post-body td,
.post-body th {
  border: 1px solid var(--color-hairline);
  padding: 0.4rem 0.6rem;
}

.post-footer {
  border-top: 1px solid var(--color-hairline);
  margin-top: 3rem;
  padding-top: 1.5rem;
}

.post-author {
  align-items: start;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.post-author img {
  border-radius: 50%;
  flex: none;
  margin: 0;
  width: 4rem;
}

.post-author p,
.post-disclaimer {
  color: var(--color-gray);
  font-size: 0.8rem;
}

/* --- Footer links (new column) --------------------------------------------- */
.footer-links {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--color-gray);
  margin-bottom: 0;
}

@media (min-width: 1100px) {
  .footer {
    grid-template-columns: 1fr 2fr 1fr;
  }

  .footer-copyright {
    grid-column: 1 / -1;
  }
}

/* Phone and tablet nav: the links sit beside the logo where they fit and
   wrap under it (clear of it) where they don't, with even spacing. (Not a
   sideways scroller: overflow would clip the Services dropdown.) The logo
   box takes the image's own height, so it can't overhang the links. */
@media (max-width: 799px) {
  .nav {
    row-gap: 0.75rem;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
  }

  .nav-links a,
  .nav-links .dropdown {
    margin-right: 0;
  }
}

/* ==========================================================================
   Motion: geometric backgrounds, parallax, scroll reveals
   All CSS. Parallax and reveals use scroll-driven animations
   (animation-timeline), inside @supports, so browsers without them get the
   same backgrounds, static. Everything here stops under prefers-reduced-motion.
   ========================================================================== */

/* --- Hero: rotating, breathing dot field --------------------------------- */
.hero {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

/* Parakeet dots across the whole hero. The layer is oversized (inset -50%)
   so its corners stay out of view while it turns. It rotates once every
   four minutes and zooms in and out over 40 seconds; `rotate` and `scale`
   are separate properties so both run at once, leaving `translate` free
   for the scroll parallax below. */
/* Also the backdrop of the older inner-page headers (.page-header), as a
   pseudo-element: same dots and motion, no parallax. */
.hero-dots,
.page-header::before {
  animation:
    dots-turn 240s linear infinite,
    dots-breathe 40s ease-in-out infinite alternate;
  content: "";
  background-image: radial-gradient(
    color-mix(in srgb, var(--color-verified) 30%, transparent) 2px,
    transparent 2.6px
  );
  background-size: 22px 22px;
  inset: -50%;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

/* Inner pages (the team page) swap the dots for a honeycomb: one hexagon
   plus its connecting stroke per 56x100 inline-SVG tile, in Parakeet
   (#008c69; a data URI can't read CSS variables) at 32%. Same motion. */
.hero--page .hero-dots {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 0v34' fill='none' stroke='%23008c69' stroke-opacity='0.32' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 42px 75px;
}

/* Filled cells on the honeycomb, placed and cycled by src/ts/pattern-fills.ts.
   Each is one hexagon (same proportions as the tile's: 56 wide, 66 tall,
   side vertices at 16/66 and 50/66) that fades between open and filled. */
.hex-fill {
  background: color-mix(in srgb, var(--color-verified) 16%, transparent);
  clip-path: polygon(50% 0, 100% 24.24%, 100% 75.76%, 50% 100%, 0 75.76%, 0 24.24%);
  opacity: 0;
  position: absolute;
  transition: opacity 2.4s ease-in-out;
}

.hex-fill.is-on {
  opacity: 1;
}

/* Service pages (DealPrep, Diligence Monster, Policysaurus, Cobalt Lawyers)
   get a triangle lattice: one 56x97 tile holds two rows of equilateral
   triangles (side 56), in Star Sapphire (#386192) at 22%. Cells fill and fade
   via src/ts/pattern-fills.ts, each in a random palette colour. */
.service-hero .hero-dots {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M0 0H56M0 48.5H56M0 0L56 97M56 0L0 97' fill='none' stroke='%23386192' stroke-opacity='0.22' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 42px 72.75px;
}

.tri-fill {
  opacity: 0;
  position: absolute;
  transition: opacity 2.4s ease-in-out;
}

.tri-fill--down {
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.tri-fill--up {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.tri-fill.is-on {
  opacity: 1;
}

@keyframes dots-turn {
  to {
    rotate: 360deg;
  }
}

@keyframes dots-breathe {
  from {
    scale: 1;
  }
  to {
    scale: 1.35;
  }
}

/* --- Dark bands: a soft glow that shifts with scroll ----------------------- */
/* The glow's position is two registered custom properties, so it can be
   animated. Each band names its own view timeline, and its ::before moves
   the light from bottom-left to top-right as the band crosses the screen
   (see the scroll-driven block below). Without scroll timelines the glow
   simply sits at its starting point, unless src/ts/scroll-effects.ts is
   driving it: the properties inherit, so the script sets them on the band
   and its ::before picks them up. */
@property --glow-x {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 12%;
}

@property --glow-y {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 100%;
}

.proof,
.checkout-body,
.cta-band {
  isolation: isolate;
  overflow: hidden;
  position: relative;
  view-timeline-name: --band;
}

.proof::before,
.checkout-body::before,
.cta-band::before {
  background:
    radial-gradient(
      ellipse 75% 120% at var(--glow-x) var(--glow-y),
      color-mix(in srgb, var(--color-heading) 70%, transparent),
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 80% at calc(100% - var(--glow-x)) calc(100% - var(--glow-y)),
      color-mix(in srgb, var(--color-tertiary) 10%, transparent),
      transparent 70%
    ),
    linear-gradient(170deg, var(--color-black) 35%, #0e1a2d);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

/* --- Scroll-driven: parallax and reveals ----------------------------------- */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    /* The dot field lags behind the page as the hero scrolls away. */
    .hero-dots {
      animation:
        dots-turn 240s linear infinite,
        dots-breathe 40s ease-in-out infinite alternate,
        parallax linear both;
      animation-range: normal, normal, 0 100vh;
      animation-timeline: auto, auto, scroll(root);
    }

    @keyframes parallax {
      to {
        translate: 0 -160px;
      }
    }

    .proof::before,
    .checkout-body::before,
    .cta-band::before {
      animation: light-shift linear both;
      animation-range: cover;
      animation-timeline: --band;
    }

    @keyframes light-shift {
      from {
        --glow-x: 5%;
        --glow-y: 115%;
      }
      to {
        --glow-x: 95%;
        --glow-y: -15%;
      }
    }

    /* Hero copy and sample card drift up at different rates as the hero
       scrolls away. */
    .hero-copy,
    .hero-sample {
      animation: hero-out linear both;
      animation-range: 0 80vh;
      animation-timeline: scroll(root);
    }

    .hero-sample {
      --hero-shift: -40px;
    }

    /* A light fade only: the CTAs are still on screen here and mustn't
       look disabled. */
    @keyframes hero-out {
      to {
        opacity: 0.85;
        translate: 0 var(--hero-shift, -20px);
      }
    }

    /* Cards and steps rise into place as they enter the viewport.
       Keep this list in step with REVEAL_SELECTOR in scroll-effects.ts. */
    .service-card,
    .post-card,
    .how-steps li,
    .pillars li,
    .shift-split > div,
    .quotes figure,
    .pricing-card,
    .law-diff,
    .leader,
    .team-group,
    .feature-card,
    .highlight-card,
    .collections-card {
      animation: reveal ease-out both;
      animation-range: entry 0% entry 60%;
      animation-timeline: view();
    }

    @keyframes reveal {
      from {
        opacity: 0;
        translate: 0 32px;
      }
    }

    /* Tall cards (team bios) finish their fade within a fixed distance,
       rather than 60% of their own height, so nobody reads faded text. */
    .leader,
    .team-group,
    .highlight-card,
    .collections-card {
      animation-range: entry 0% entry 160px;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-dots,
  .page-header::before {
    animation: none;
  }
}

/* Keep identifiers like patent numbers on one line. */
.nowrap {
  white-space: nowrap;
}

/* Reveal fallback for browsers without scroll timelines. scroll-effects.ts
   adds .reveal-fallback to <html> (only when it will also add .is-revealed),
   so without JS nothing is ever hidden. Same list as the view() reveals. */
.reveal-fallback :is(.service-card, .post-card, .how-steps li, .pillars li, .shift-split > div, .quotes figure, .pricing-card, .law-diff, .leader, .team-group, .feature-card, .highlight-card, .collections-card) {
  opacity: 0;
  transition:
    opacity 600ms ease-out,
    translate 600ms ease-out,
    box-shadow 200ms ease,
    transform 200ms ease;
  translate: 0 32px;
}

.reveal-fallback :is(.service-card, .post-card, .how-steps li, .pillars li, .shift-split > div, .quotes figure, .pricing-card, .law-diff, .leader, .team-group, .feature-card, .highlight-card, .collections-card).is-revealed {
  opacity: 1;
  translate: 0 0;
}

/* Space between consecutive team profiles (Rajah, then Josh). */
.profile + .profile {
  margin-top: 5rem;
}

/* ==========================================================================
   Team page, in the lander's style
   ========================================================================== */

/* A single-column hero for inner pages: same tint and dot field as the
   homepage, without the sample card. */
.hero--page {
  padding-bottom: 5rem;
}

@media (min-width: 1100px) {
  .hero--page {
    grid-template-columns: 1fr;
    padding-top: 9rem;
  }
}

.hero--page .hero-copy {
  max-width: 48rem;
}

.leadership,
.team-section {
  padding-top: var(--spacingSection);
}

.leadership h2,
.team-section h2 {
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.15;
}

.leaders {
  display: grid;
  gap: var(--spacingGap);
}

@media (min-width: 1100px) {
  .leaders {
    align-items: start;
    grid-template-columns: 1fr 1fr;
  }
}

.leader {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: 8px;
  border-top: 4px solid var(--color-primary);
  padding: 1.75rem;
}

.leader-head {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.leader-photo {
  border: 3px solid var(--color-tertiary);
  border-radius: 50%;
  flex: none;
  height: 5.5rem;
  margin: 0;
  object-fit: cover;
  width: 5.5rem;
}

.leader h3 {
  color: var(--color-heading);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* The eyebrow style on a <p> (h6 carries the small size elsewhere). */
.leader-head .subheading {
  font-size: 0.7rem;
  line-height: 1.5;
  margin: 0;
}

.leader > p {
  color: var(--color-gray);
}

.leader > p:last-child {
  margin-bottom: 0;
}

.team-groups {
  display: grid;
  gap: var(--spacingGap);
}

@media (min-width: 800px) {
  .team-groups {
    grid-template-columns: repeat(2, 1fr);
  }
}

.team-group {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
}

.team-group .team-list {
  margin: 1rem 0 0;
}

.team-group .team-list li {
  border-top: 1px solid var(--color-hairline);
  margin: 0;
  padding: 0.85rem 0;
}

.team-group .team-list li:last-child {
  padding-bottom: 0;
}

.team-group h4 {
  color: var(--color-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-group .team-list p {
  color: var(--color-gray);
  font-size: 0.85rem;
  margin: 0;
}

/* Phones: photo above the name, so long titles get the full width. */
@media (max-width: 639px) {
  .leader {
    padding: 1.25rem;
  }

  .leader-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.9rem;
  }
}

/* --- Team section: lobby sketch backdrop ----------------------------------- */
/* The sketch runs edge to edge behind "Who you'll work with", under a wash of
   the page tint (heavier at the top, behind the heading) so the cards and
   copy stay the focus. Its vertical position is a registered property,
   panned by the section's own view timeline (and by scroll-effects.ts where
   scroll timelines aren't supported), so it drifts gently as you scroll. */
@property --lobby-y {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

/* The backdrop is a full-bleed pseudo-element; clip, rather than hide,
   sideways overflow so 100vw can't add a horizontal scrollbar. */
body {
  overflow-x: clip;
}

.team-section {
  isolation: isolate;
  view-timeline-name: --lobby;
}

.team-section::before {
  background:
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--color-secondary) 94%, transparent) 0%,
      color-mix(in srgb, var(--color-secondary) 78%, transparent) 35%,
      color-mix(in srgb, var(--color-secondary) 55%, transparent) 100%
    ),
    image-set(url("/lobbySketch.webp") type("image/webp"), url("/assets/lobbySketch.png") type("image/png"))
      center var(--lobby-y) / cover no-repeat;
  content: "";
  inset: 0 calc(50% - 50vw);
  position: absolute;
  z-index: -1;
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .team-section::before {
      animation: lobby-pan linear both;
      animation-range: cover;
      animation-timeline: --lobby;
    }

    @keyframes lobby-pan {
      from {
        --lobby-y: 30%;
      }
      to {
        --lobby-y: 70%;
      }
    }
  }
}

/* The <picture> around the booking image takes no part in layout. */
.checkout > picture {
  display: contents;
}

/* ==========================================================================
   Inner pages in the new theme (services, legal services, testimonials,
   transactions, Policysaurus case studies). Content unchanged; this restyles
   the older building blocks to match the homepage.
   ========================================================================== */

/* --- Headers: tint, dot field, bold sapphire headline; art kept ---------- */
.page-header {
  align-items: center;
  gap: var(--spacingGap);
  isolation: isolate;
  min-height: 0;
  overflow: hidden;
  padding: 8rem var(--spacingContent) var(--spacingSection);
}

@media (min-width: 1100px) {
  .page-header {
    padding-top: 9rem;
  }
}

.page-header h1 {
  color: var(--color-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.page-header h3 {
  color: var(--color-gray);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
}

.page-header img {
  position: relative;
}

/* --- Bands: straight, full-width tint instead of skewed slabs ------------ */
.band::before,
.band::after {
  content: none;
}

.band--tint {
  background: var(--color-secondary);
  border-top: 0;
  box-shadow: 0 0 0 100vmax var(--color-secondary);
  clip-path: inset(0 -100vmax);
  padding-top: var(--spacingSection);
  padding-bottom: var(--spacingSection);
}

/* --- Type: section headings in the homepage's bold sapphire -------------- */
main .content h1,
main .content h2 {
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.15;
}

main .content h3 {
  color: var(--color-heading);
  line-height: 1.3;
}

/* The Cobalt Lawyers pages set their body copy as h3s; read as a lede. */
main .content h3.intro-block {
  color: var(--color-gray);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.6;
}

/* --- Testimonials: quotes like the homepage's ----------------------------- */
.quote-list .quote {
  border-left: 3px solid var(--color-primary);
  color: var(--color-heading);
  font-size: 1.05rem;
  font-style: normal;
  padding-left: 1.25rem;
}

.quote-list .quote-source {
  color: var(--color-light-gray);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
}

/* --- Transactions: matters grouped by kind, each a grid of cards ---------- */
.matter-group + .matter-group {
  margin-top: 3rem;
}

.matter-group h3 {
  margin-bottom: 1rem;
}

.matter-list {
  list-style: none;
  padding: 0;
}

.matter-list,
.content-block:has(> .transaction) {
  display: grid;
  gap: 1rem var(--spacingGap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
}

.transaction {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-left: 3px solid var(--color-primary);
  border-radius: 8px;
  color: var(--color-gray);
  margin: 0;
  padding: 1rem 1.25rem;
}

/* --- Leftover old details, softened ---------------------------------------- */
/* Testimonials' credential blocks: the old highlighter bar on an empty
   element becomes a thin Orange Pop rule. */
.step-rule {
  height: auto;
  min-height: 3px;
}

.step-rule::after {
  bottom: 0;
  height: 3px;
  left: 0;
  opacity: 1;
  width: 100%;
}

/* Policysaurus research collections: hairlines and a rounded card. */
.collections-list {
  border: 1px solid var(--color-hairline);
  border-radius: 8px;
}

.collections-list p {
  border-bottom-color: var(--color-hairline);
  color: var(--color-gray);
}

/* Diligence Monster carousel: hairline, not a black rule. */
.carousel {
  border-top-color: var(--color-hairline);
}

/* ==========================================================================
   Service pages (Diligence Monster, Policysaurus, Cobalt Lawyers), rebuilt
   on the homepage's components
   ========================================================================== */

/* --- Header: homepage hero with the page's own art ---------------------- */
.service-hero-logo {
  display: block;
  height: auto;
  margin-bottom: 1.25rem;
  width: min(16rem, 70%);
}

.service-hero-art {
  justify-self: center;
  margin: 0;
}

.service-hero-art img {
  display: block;
  filter: drop-shadow(0 24px 40px rgb(20 34 58 / 0.12));
  margin: 0 auto;
  max-height: 26rem;
  width: auto;
}

.service-hero-art--card {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgb(20 34 58 / 0.12);
  padding: 1.25rem;
}

.service-hero-art--card img {
  filter: none;
}

/* --- Split: copy on one side, a card or art on the other ----------------- */
.split {
  align-items: center;
  display: grid;
  gap: var(--spacingGap);
  padding-top: var(--spacingSection);
}

@media (min-width: 1100px) {
  .split {
    grid-template-columns: 1.1fr 1fr;
  }
}

.split h2 {
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.15;
}

.split p {
  color: var(--color-gray);
}

.split-art {
  margin: 0;
}

.split-art img {
  display: block;
  margin: 0 auto;
  max-height: 24rem;
  width: auto;
}

/* --- Feature cards (Diligence Monster features, Policysaurus tools) ------ */
.feature-section,
.demo,
.case-studies,
.tech-advantage {
  padding-top: var(--spacingSection);
}

.feature-grid {
  display: grid;
  gap: var(--spacingGap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: 8px;
  border-top: 4px solid var(--color-primary);
  padding: 1.5rem;
}

.feature-card img {
  display: block;
  height: 4.5rem;
  margin-bottom: 1rem;
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.feature-card h3 {
  color: var(--color-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--color-gray);
  font-size: 0.9rem;
  margin: 0;
}

/* --- Dark call-to-action band (shares the dark bands' scroll glow) ------- */
.cta-band {
  align-items: center;
  color: var(--color-white);
  display: grid;
  gap: 1.5rem var(--spacingGap);
  margin-top: var(--spacingSection);
  padding: 3rem var(--spacingContent);
}

@media (min-width: 1100px) {
  .cta-band {
    grid-template-columns: 1fr auto;
  }
}

.cta-band strong {
  color: var(--color-primary);
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: rgb(255 255 255 / 0.8);
  margin: 0;
  max-width: 40rem;
}

/* --- Demo carousel on a card ---------------------------------------------- */
.demo-carousel {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgb(20 34 58 / 0.1);
  padding: 1.25rem;
}

.infographic img {
  display: block;
  margin: 0 auto;
}

/* --- Policysaurus --------------------------------------------------------- */
.collections-card,
.highlight-card {
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgb(20 34 58 / 0.08);
  padding: 1.75rem;
}

.collections-card p {
  font-size: 0.9rem;
}

.collections-card .tags {
  margin: 0;
}

.collections-card .tags li {
  background: color-mix(in srgb, var(--color-tertiary) 35%, transparent);
  color: var(--color-black);
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
}

/* Text-only numbered steps (Policysaurus product description). */
.how-steps--text {
  margin-bottom: 0;
}

.how-steps--text p {
  color: var(--color-gray);
  font-size: 0.95rem;
}

.service-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.tech-advantage .section-intro p {
  color: var(--color-gray);
  margin: 0 auto;
  max-width: 44rem;
}

/* --- Cobalt Lawyers -------------------------------------------------------- */
.legal-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.legal-switch a {
  border: 1px solid var(--color-hairline);
  border-radius: 50rem;
  color: var(--color-gray);
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
}

.legal-switch a::after {
  content: none;
}

.legal-switch a[aria-current="page"] {
  background: var(--color-heading);
  border-color: var(--color-heading);
  color: var(--color-white);
}

.highlight-card {
  text-align: center;
}

.highlight-card img {
  display: block;
  height: 10rem;
  margin: 0 auto 1rem;
  width: auto;
}

.highlight-card strong {
  color: var(--color-heading);
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.highlight-card p {
  margin: 0;
}

.legal-body {
  padding-bottom: var(--spacingSection);
}

/* --- Nav: current page ----------------------------------------------------- */
/* The underline that otherwise appears on hover stays drawn, in sapphire. */
.nav-links a[aria-current="page"],
.dropdown summary.is-current {
  color: var(--color-heading);
  font-weight: 700;
}

.nav-links > li > a[aria-current="page"]::after {
  transform: scaleX(1);
}

.dropdown summary.is-current {
  box-shadow: inset 0 -2px 0 var(--color-primary);
}

.dropdown-menu a[aria-current="page"] {
  background-color: var(--color-secondary);
  box-shadow: inset 3px 0 0 var(--color-primary);
}

/* --- DealPrep ------------------------------------------------------------- */
.split--flip > figure {
  order: -1;
}

@media (max-width: 1099px) {
  .split--flip > figure {
    order: 0;
  }
}

.benefits {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
}

@media (min-width: 640px) {
  .benefits {
    grid-template-columns: 1fr 1fr;
  }
}

.benefits li {
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-hairline);
  border-left: 3px solid var(--color-primary);
  border-radius: 8px;
  color: var(--color-heading);
  display: flex;
  font-weight: 600;
  gap: 1rem;
  margin: 0;
  padding: 1rem 1.25rem;
}

.benefits img {
  flex: none;
  height: 2.5rem;
  margin: 0;
  object-fit: contain;
  width: 2.5rem;
}

.threec {
  padding-top: var(--spacingSection);
}

.threec h2 {
  color: var(--color-heading);
  font-weight: 700;
}

.threec p {
  color: var(--color-gray);
  margin: 0 auto;
  max-width: 46rem;
}
