/* Design: classic. Professional services: serif headings, soft cards, a dark
   hero band and full-width sections. First built for cbmattick.com; any site
   can use it with its own tokens (site.config.json theme.tokens). Styles every
   block in lib/blocks.ts and reads only the tokens below. */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-alt: #f3efe6;
  --fg: #1a2230;
  --heading: #0a2240;
  --muted: #586375;
  --border: #e3ded4;
  --accent: #b5a36a;
  --accent-strong: #9c8a52;
  --accent-soft: #f4edd8;
  --on-accent: #051324;
  --dark: #0a2240;
  --dark-deep: #051324;
  --on-dark: #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --border-width: 1px;
  --radius: 8px;
  --max-width: 1160px;

  /* Derived, not tokens */
  --radius-sm: calc(var(--radius) / 2);
  --gutter: calc(max(0px, (100% - var(--max-width)) / 2) + 1.5rem);
  --shadow-sm: 0 2px 8px color-mix(in srgb, var(--heading) 6%, transparent);
  --shadow-md: 0 8px 24px color-mix(in srgb, var(--heading) 9%, transparent);
  --shadow-lg: 0 16px 40px color-mix(in srgb, var(--heading) 14%, transparent);
  --on-dark-muted: color-mix(in srgb, var(--on-dark) 72%, var(--dark));
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--heading);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
}

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

/* Page frame: sections run full width; their content keeps to --max-width. */
.container {
  max-width: none;
  padding: 0;
}

section {
  position: relative;
  padding: 4rem var(--gutter);
  scroll-margin-top: 5rem;
}

/* Bands get more air than plain sections */
.tone-tinted,
.tone-dark,
section[data-block-type="callToAction"] {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

section[data-block-type="callToAction"] {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

section[data-block-type="contact"].tone-tinted {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem var(--gutter);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo-text {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
}

.logo-text:hover {
  color: var(--heading);
}

.brand-logo {
  width: 26px;
  height: 32px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-subtitle {
  margin-top: 2px;
  line-height: 1.68;
  color: var(--accent-strong);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.8rem;
}

.desktop-nav a {
  color: var(--heading);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
}

.desktop-nav a:hover {
  color: var(--accent);
}

.desktop-nav .nav-cta {
  padding: 0.55rem 1.25rem;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.desktop-nav .nav-cta:hover {
  background: var(--heading);
  border-color: var(--heading);
  color: var(--bg);
}

.menu-toggle {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--heading);
  font: 600 0.9rem var(--font-body);
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--bg);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a:not(.btn) {
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 1.75rem;
  text-decoration: none;
}

@media (min-width: 900px) {
  .desktop-nav {
    display: flex;
  }
  .menu-toggle,
  .mobile-menu {
    display: none;
  }
}

/* Narrow screens: the brand keeps the full width (as the design has it) and
   the menu button sits in the header's bottom-right corner, beside the short
   last line of the subtitle, instead of taking a column of its own. */
@media (max-width: 899px) {
  .menu-toggle {
    position: absolute;
    right: var(--gutter);
    bottom: 0.6rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  background: color-mix(in srgb, var(--accent) 80%, white);
  color: var(--on-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn-outline {
  border: 1px solid var(--heading);
  background: transparent;
  color: var(--heading);
}

.btn-outline:hover {
  background: var(--heading);
  color: var(--bg);
  box-shadow: none;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Section headings */
.eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.25;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.split-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  max-width: none;
  text-align: left;
}

.split-heading > div {
  max-width: 620px;
}

.split-heading h2 {
  margin-bottom: 0.6em;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
}

.split-heading p {
  margin: 0;
  font-size: inherit;
}

/* Tones */
.tone-tinted {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tone-dark {
  background: var(--dark-deep);
  color: var(--on-dark);
}

.tone-dark h2,
.tone-dark h3 {
  color: var(--on-dark);
}

.tone-dark .eyebrow {
  color: var(--accent-soft);
}

.tone-dark p,
.tone-dark .section-heading p {
  color: var(--on-dark-muted);
}

/* Hero: dark band with a dotted texture, text beside photos */
section[data-block-type="hero"] {
  overflow: hidden;
  padding-top: 4.5rem;
  padding-bottom: 5rem;
  background: radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--dark) 85%, white) 0%, var(--dark) 60%, var(--dark-deep) 100%);
  color: var(--on-dark);
}

section[data-block-type="hero"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 10%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

section[data-block-type="hero"] .grid-asymmetric {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

section[data-block-type="hero"] h1 {
  margin-bottom: 1.25rem;
  color: var(--on-dark);
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  line-height: 1.15;
}

section[data-block-type="hero"] .eyebrow {
  display: inline-flex;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

section[data-block-type="hero"] p {
  margin-bottom: 1.75rem;
  /* A lighter tint than other text on dark bands, as the hero's intro is */
  color: color-mix(in srgb, var(--on-dark) 84%, var(--dark));
  font-size: 1.15rem;
  line-height: 1.65;
}

.hero-quote {
  margin: 0 0 2rem;
  padding: 0.85rem 1.25rem;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: color-mix(in srgb, var(--on-dark) 4%, transparent);
}

section[data-block-type="hero"] .hero-quote p {
  margin: 0;
  line-height: 1.68;
  color: color-mix(in srgb, var(--on-dark) 90%, var(--accent));
  font-size: 0.95rem;
  font-style: italic;
}

section[data-block-type="hero"] .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

section[data-block-type="hero"] .btn-outline {
  border-color: color-mix(in srgb, var(--on-dark) 35%, transparent);
  color: var(--on-dark);
}

section[data-block-type="hero"] .btn-outline:hover {
  border-color: var(--on-dark);
  background: color-mix(in srgb, var(--on-dark) 10%, transparent);
}

.photo-stack {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.photo-card {
  position: relative;
  flex: 1;
  max-width: 250px;
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius);
  background: var(--dark-deep);
  box-shadow: var(--shadow-lg);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.photo-card:nth-child(2) {
  margin-top: 2rem;
}

.photo-card:hover {
  transform: translateY(-4px);
}

.photo-card img {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.photo-card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem 1rem 0.85rem;
  background: linear-gradient(to top, color-mix(in srgb, var(--dark-deep) 95%, transparent), color-mix(in srgb, var(--dark-deep) 70%, transparent) 70%, transparent);
}

.photo-label {
  display: block;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.photo-caption {
  display: block;
  margin-top: 2px;
  color: var(--accent-soft);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Statement panel (a hero option other designs use more) */
.statement-card {
  padding: 2.5rem;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius);
}

.statement span {
  display: block;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.2;
}

.statement-tagline {
  color: var(--accent-soft);
}

.watermark {
  display: none;
}

/* Inner page opening: a quiet band with breadcrumbs */
section[data-block-type="pageHeader"] {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

section[data-block-type="pageHeader"] p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
}

section[data-block-type="pageHeader"] .eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
}

.breadcrumbs {
  display: block;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

/* Body copy: a centred reading column; consecutive text blocks read as one */
.prose,
.disclaimer {
  max-width: 732px;
  margin-inline: auto;
}

.prose-center {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.prose-center p {
  color: var(--muted);
  font-size: 1.05rem;
}

:is(section[data-block-type="richText"], section[data-block-type="list"], section[data-block-type="note"]):not(.tone-tinted, .tone-dark)
  + :is(section[data-block-type="richText"], section[data-block-type="list"], section[data-block-type="note"]):not(.tone-tinted, .tone-dark) {
  padding-top: 0;
}

:is(section[data-block-type="richText"], section[data-block-type="list"]):has(+ :is(section[data-block-type="richText"], section[data-block-type="list"], section[data-block-type="note"])) {
  padding-bottom: 0;
}

.highlights {
  margin: 0;
  padding-left: 1.2rem;
}

.highlights li {
  margin-bottom: 0.85rem;
  padding-left: 0.2rem;
}

.disclaimer {
  margin-top: 1rem;
  margin-bottom: 1.1em;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

/* Key figures */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin: 1rem 0 0;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
}

.stat dd {
  margin: 0;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
}

.stat dt {
  color: var(--muted);
  font-size: 0.88rem;
  /* The label sits on a body-text line, as in the original design */
  line-height: calc(1.68 * 17px);
}

/* Cards: simple and bold grids */
.workflow-examples,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.workflow-box,
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card {
  box-shadow: var(--shadow-sm);
}

.workflow-box p,
.card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.badge {
  align-self: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Cards: numbered list beside an optional photo panel */
.numbered-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 3.5rem;
  align-items: start;
}

.numbered-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.numbered-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 1rem;
  /* Number and title centre on each other, so a wrapped title keeps the number in the middle */
  align-items: center;
  padding: 1.35rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.numbered-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.numbered-num {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.numbered-item h3 {
  margin: 0;
  font-size: 1.2rem;
}

.numbered-item p {
  grid-column: 2;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.numbered-aside {
  position: sticky;
  top: 6rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.tone-tinted .numbered-aside {
  background: var(--bg);
}

.numbered-aside img {
  /* Inline, so it sits on a text line with the gap below it the design has */
  display: inline-block;
  width: 100%;
  height: 380px;
  margin-bottom: 1.25rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.numbered-aside h3 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.numbered-aside p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

section[data-block-type="cards"] > .btn + :is(.workflow-examples, .feature-grid) {
  margin-top: 2rem;
}

/* Cards extras: a headline figure, a detail line, the compact rows style and small print */
.card-figure {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
}

.card-detail {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

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

.card-row {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 0.35rem 1.5rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.card-row:first-child {
  border-top: 1px solid var(--border);
}

.card-row h3 {
  grid-row: 1 / span 4;
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-row > :not(h3) {
  grid-column: 2;
}

.card-row p,
.card-row .card-detail {
  margin: 0;
}

.card-row .card-figure {
  margin: 0;
  font-size: 1.25rem;
}

.tone-dark .card-row {
  border-color: color-mix(in srgb, var(--on-dark) 15%, transparent);
}

.tone-dark .card-row h3 {
  color: var(--accent);
}

.tone-dark .card-detail,
.tone-dark section[data-block-type="cards"] .disclaimer {
  color: var(--on-dark-muted);
}

section[data-block-type="cards"] .disclaimer {
  max-width: none;
  margin-top: 2rem;
}

.card-rows + .disclaimer {
  margin-top: 1rem;
  padding-top: 0;
  border-top: 0;
}

/* Media cards, e.g. podcast episodes */
section[data-block-type="mediaCards"] {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.media-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.tone-dark .media-card {
  border-color: color-mix(in srgb, var(--on-dark) 10%, transparent);
  background: color-mix(in srgb, var(--on-dark) 4%, transparent);
}

.tone-dark .media-body p {
  color: var(--on-dark-muted);
}

.tone-dark .media-card:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--on-dark) 7%, transparent);
}

.media-cover {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--dark);
}

.media-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.media-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.media-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem;
}

.media-body h3 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  line-height: 1.35;
}

.media-body p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.media-link {
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.tone-dark .media-link {
  color: var(--accent-soft);
}

.tone-dark .media-link:hover {
  color: var(--on-dark);
}

/* Video, e.g. an explainer */
.video-frame {
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: var(--border-width, 1px) solid var(--border);
  border-radius: calc(var(--radius) * 1.75);
  background: var(--fg);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--fg) 12%, transparent);
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
}

.tone-dark .video-frame {
  border-color: color-mix(in srgb, var(--on-dark) 14%, transparent);
}

.video-switch {
  margin: 1.25rem 0 0;
  text-align: center;
}

.video-switch button {
  padding: 0.25rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  cursor: pointer;
}

.video-switch button:hover {
  color: var(--accent-strong, var(--accent));
}

/* Page cards (pageList) */
.feature-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-card {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.page-card:hover {
  border-color: var(--accent);
  color: inherit;
}

.page-card:hover h3 {
  color: var(--accent-strong);
}

.page-card-icon {
  width: auto;
  height: 26px;
  /* The design's icon sits on a text line: 26px image + 9px line remainder + 20px gap */
  margin-bottom: calc(1.25rem + 9px);
}

.page-card p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.page-card-more {
  margin-top: auto;
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Without a link label the whole card is the link; no arrow */
.page-card-more[aria-hidden] {
  display: none;
}

/* Two columns: a quieter index card */
.cols-2 .page-card {
  padding: 1.75rem;
  background: var(--bg);
  box-shadow: none;
}

.cols-2 .page-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.cols-2 .page-card p {
  margin-bottom: 1.1em;
  color: var(--fg);
  font-size: inherit;
  line-height: 1.68;
}

/* Locations */
.locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

.location-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.location-card:not(:has(.location-photo)) {
  grid-template-columns: 1fr;
}

.location-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.location-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem;
}

.location-label {
  margin-bottom: 0.35rem;
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-details h3 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.location-details address {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.5;
}

.location-details address span {
  display: block;
}

.location-phone {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.locations:not(.locations-compact) .location-extra {
  display: none;
}

.location-extra {
  display: block;
  margin-top: -0.5rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.location-note {
  margin: 0;
  padding: 0.5rem 0.75rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.82rem;
}

.locations-compact .location-card {
  background: var(--bg);
  box-shadow: none;
}

.locations-compact .location-details {
  justify-content: flex-start;
}

.locations-compact .location-details h3 {
  margin-bottom: 0.3rem;
  font-size: 1.3rem;
}

.locations-compact {
  gap: 1.75rem;
}

.locations-compact address {
  margin: 0;
  font-size: inherit;
  line-height: 1.68;
}

.locations-compact address span,
.locations-compact .location-phone,
.locations-compact .location-extra {
  display: block;
  margin: 0 0 0.3rem;
  font-size: inherit;
  line-height: 1.68;
}

.locations-compact .location-extra {
  color: var(--muted);
}

/* A note straight after the locations reads as their footnote */
section[data-block-type="locations"]:has(+ section[data-block-type="note"]) {
  padding-bottom: 0;
}

section[data-block-type="locations"] + section[data-block-type="note"] {
  padding-top: 0;
}

section[data-block-type="locations"] + section[data-block-type="note"] .disclaimer {
  max-width: none;
}

/* Call to action: a centred close */
.cta-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-panel h2 {
  margin-bottom: 0.75rem;
}

.cta-panel p {
  max-width: 580px;
  margin: 0 auto 1.75rem;
  color: var(--muted);
}

/* Steps */
.rhythm-diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.rhythm-step {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-number {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.pricing-card .btn {
  margin-top: auto;
  align-self: stretch;
  justify-content: center;
}

.price {
  margin: 1rem 0;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
}

.price small {
  font-size: 1rem;
}

.plan-highlight {
  color: var(--accent-strong);
  font-weight: 600;
}

.plan-details {
  align-self: stretch;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.human-gate {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}

.human-gate p {
  margin: 0;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 1.2rem;
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary::after {
  content: "+";
  color: var(--accent);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  padding-bottom: 1.25rem;
  color: var(--muted);
}

/* Contact form: a narrow centred column */
section[data-block-type="contact"] > * {
  max-width: 592px;
  margin-inline: auto;
}

section[data-block-type="contact"] > h2 {
  margin-bottom: 0.6em;
}

.contact-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Label and field share a text line, as plain HTML form rows do */
.form-field {
  display: block;
  margin-bottom: 1.1em;
}

.form-field label {
  color: var(--fg);
}

/* Fields keep the browser's own border, font and colours: the design's plain form */
.form-field input,
.form-field textarea {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.6rem;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-field textarea {
  height: 96.2px;
  resize: vertical;
}

.contact-card .btn {
  padding: 0.75rem 1.5rem;
  border: 0;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: normal;
}

.form-status {
  margin-top: 1rem;
  font-weight: 600;
}

.form-status.error {
  color: #b42318;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 4.5rem var(--gutter) 2rem;
  background: var(--dark-deep);
  color: color-mix(in srgb, var(--on-dark) 72%, var(--dark-deep));
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
}

.footer-content .grid-asymmetric,
.footer-columns {
  display: contents;
}

.site-footer .logo-text {
  margin-bottom: 0.75rem;
  color: var(--on-dark);
  font-size: 1.25rem;
}

.site-footer .brand-logo {
  width: 24px;
  height: 30px;
}

.tagline-footer,
.footer-contact {
  margin-bottom: 1rem;
  color: color-mix(in srgb, var(--on-dark) 55%, var(--dark-deep));
  font-size: 0.9rem;
  line-height: 1.5;
}

.site-footer a {
  color: var(--accent-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--on-dark);
}

.footer-col h4 {
  margin-bottom: 1.1rem;
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col p {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

.footer-col .footer-extra {
  color: color-mix(in srgb, var(--on-dark) 45%, var(--dark-deep));
  font-size: 0.82rem;
}

.footer-meta {
  order: 10;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--on-dark) 12%, transparent);
  color: color-mix(in srgb, var(--on-dark) 50%, var(--dark-deep));
  font-size: 0.82rem;
}

.footer-meta p {
  margin: 0;
}

.footer-links a + a {
  margin-left: 1rem;
}

/* Narrower screens */
@media (max-width: 960px) {
  section[data-block-type="hero"] .grid-asymmetric {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .numbered-layout,
  .media-grid,
  .locations,
  .footer-content {
    grid-template-columns: 1fr;
  }
  .numbered-aside {
    display: none;
  }
  .card-row {
    grid-template-columns: 1fr;
  }
  .card-row h3,
  .card-row > :not(h3) {
    grid-row: auto;
    grid-column: auto;
  }
  .card-row h3 {
    order: -1;
  }
  .feature-grid,
  .workflow-examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-content {
    gap: 2rem;
  }
  .footer-meta {
    margin-top: 1rem;
  }
}

@media (max-width: 860px) {
  .feature-grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  section[data-block-type="hero"] {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }
  .photo-stack {
    flex-direction: column;
    align-items: center;
  }
  .photo-card {
    width: 100%;
    max-width: 100%;
  }
  .photo-card:nth-child(2) {
    margin-top: 0;
  }
  .photo-card img {
    height: 240px;
  }
  .feature-grid,
  .workflow-examples,
  .location-card {
    grid-template-columns: 1fr;
  }
  .location-photo {
    height: 180px;
    min-height: 0;
  }
}

/* ------------------------------------------------------------------------
   Hero picker, split cards, check lists, photo cards, page links,
   testimonials, the header menu and footer columns. Token-only. */

.hero-subtitle {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.25rem;
}

.picker {
  align-self: center;
  padding: 0.75rem;
  border: var(--border-width, 1px) solid var(--border);
  border-radius: calc(var(--radius, 0px) * 2);
  background: var(--surface);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--fg) 10%, transparent);
}

.picker-prompt {
  margin: 0;
  padding: 0.75rem 0.75rem 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

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

.picker a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius, 0px);
  color: inherit;
  text-decoration: none;
}

.picker a:hover {
  background: var(--surface-alt);
}

.picker-image {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius, 0px);
  object-fit: cover;
}

.picker-text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.picker-title {
  font-weight: 600;
}

.picker-summary {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-arrow {
  color: var(--accent);
}

.split-layout {
  display: grid;
  gap: 2.5rem;
}

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

.split-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .split-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.split-card {
  padding: 1.5rem;
  border: var(--border-width, 1px) solid var(--border);
  border-radius: calc(var(--radius, 0px) * 2);
  background: var(--surface);
}

.split-card h3 {
  margin-top: 1rem;
}

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

.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.check {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent-soft, var(--surface-alt));
  color: var(--accent-strong, var(--accent));
  font-size: 0.85rem;
  font-weight: 700;
}

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

@media (min-width: 640px) {
  .checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .checks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .checks.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.checks li {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem;
  border: var(--border-width, 1px) solid var(--border);
  border-radius: calc(var(--radius, 0px) * 2);
  background: var(--surface);
  line-height: 1.6;
}

.photo-cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .photo-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .photo-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .photo-cards.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.photo-card-link {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--border-width, 1px) solid var(--border);
  border-radius: calc(var(--radius, 0px) * 2);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--fg) 8%, transparent);
}

.photo-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.photo-card-body p {
  margin-top: 0.25rem;
  color: var(--muted);
}

.photo-card-body ul {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.photo-card-body .page-card-more {
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--accent);
  font-weight: 600;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.page-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: var(--border-width, 1px) solid var(--border);
  border-radius: 999px;
  color: inherit;
  font-size: 0.9rem;
  text-decoration: none;
}

.page-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.testimonials {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .testimonials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .testimonials {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .testimonials.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.testimonial {
  margin: 0;
  padding: 1.5rem;
  border: var(--border-width, 1px) solid var(--border);
  border-radius: calc(var(--radius, 0px) * 2);
  background: var(--surface);
}

.testimonial blockquote {
  margin: 0;
}

.testimonial blockquote p {
  color: var(--muted);
  line-height: 1.6;
}

.testimonial blockquote p::before {
  content: "\201C";
}

.testimonial blockquote p::after {
  content: "\201D";
}

.testimonial figcaption {
  margin-top: 1rem;
  font-weight: 600;
}

.nav-menu {
  position: relative;
}

.nav-menu-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.nav-menu-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 60;
  display: grid;
  width: 18rem;
  padding: 0.5rem;
  border: var(--border-width, 1px) solid var(--border);
  border-radius: calc(var(--radius, 0px) * 2);
  background: var(--surface);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--fg) 10%, transparent);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: opacity 0.15s ease;
}

.nav-menu:hover .nav-menu-panel,
.nav-menu:focus-within .nav-menu-panel {
  opacity: 1;
  visibility: visible;
}

.nav-menu-panel a {
  display: grid;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius, 0px);
  text-decoration: none;
}

.nav-menu-panel a:hover {
  background: var(--surface-alt);
}

.nav-menu-title {
  color: var(--fg);
  font-weight: 600;
}

.nav-menu-summary {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-logo {
  display: block;
  max-width: 150px;
  height: auto;
}

.footer-note {
  max-width: 28rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-link-columns ul {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

/* The picker is a light card wherever it sits, including a dark hero. */
.picker {
  color: var(--fg);
}

section[data-block-type="hero"] .picker-prompt {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Hero accent words (**bold** in the headline) and a video beside it */
section[data-block-type="hero"] h1 strong {
  color: var(--accent);
  font-weight: inherit;
}

.hero-video {
  margin: 0;
}

.hero-video .video-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.hero-video video {
  display: block;
  width: 100%;
  height: auto;
}

.hero-video-caption {
  margin-top: 0.75rem;
  color: var(--on-dark-muted);
  font-size: 0.9rem;
}

.btn-play svg {
  width: 1.1em;
  height: 1.1em;
}

/* Accent words in card headings */
section[data-block-type="cards"] h2 strong {
  color: var(--accent-strong);
  font-weight: inherit;
}

.tone-dark section[data-block-type="cards"] h2 strong,
section[data-block-type="cards"].tone-dark h2 strong {
  color: var(--accent);
}

/* Pricing additions: intro, plan small print, terms and a closing button */
section[data-block-type="pricing"] > p {
  max-width: 720px;
  color: var(--muted);
}

.plan-footnote {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.plan-terms {
  margin-top: 1.5rem;
  color: var(--heading);
  font-weight: 600;
}

section[data-block-type="pricing"] > .btn {
  margin-top: 1.5rem;
}

/* Compare: a table of the alternatives, the business's column highlighted */
.compare-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .compare-layout:not(.compare-above) {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

.compare-intro p {
  color: var(--muted);
}

.compare-intro strong {
  color: var(--heading);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare-table caption {
  margin-bottom: 0.75rem;
  color: var(--heading);
  font-weight: 600;
  text-align: left;
}

.compare-table thead th {
  padding: 0 1rem 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.compare-table tbody th,
.compare-table td {
  padding: 1rem;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare-table tbody th {
  padding-left: 0;
  color: var(--heading);
}

.compare-table td:first-of-type {
  color: var(--muted);
}

.compare-table td:last-child {
  background: var(--accent-soft);
  color: var(--heading);
  font-weight: 500;
}

@media (max-width: 640px) {
  .compare-table thead {
    display: none;
  }
  .compare-table tr {
    display: block;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
  }
  .compare-table tbody th,
  .compare-table td {
    display: block;
    padding: 0.4rem 0.75rem;
    border: 0;
  }
  .compare-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
}

/* Conversation: named steps, each with its messages as chat bubbles */
.conversation-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .conversation-layout {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
  .conversation-intro {
    position: sticky;
    top: 6rem;
  }
}

.conversation-intro p {
  color: var(--muted);
}

.conversation-note {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--heading) !important;
  font-size: 0.85rem;
}

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

.conversation-turn {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--border);
}

.conversation-turn:last-child {
  border-bottom: 0;
}

.conversation-step {
  color: var(--heading);
  font-weight: 700;
}

.conversation-messages {
  display: grid;
  gap: 0.75rem;
}

.message {
  max-width: 34rem;
  margin: 0;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.message-you {
  justify-self: end;
  background: var(--dark);
  color: var(--on-dark);
}

.message-from {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.message-you .message-from {
  color: var(--on-dark-muted);
}

.message-chip {
  display: block;
  width: fit-content;
  margin-top: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--heading);
  font-size: 0.85rem;
  font-weight: 600;
}

.message-chip-status {
  background: #dcfce7;
  color: #166534;
}

@media (max-width: 640px) {
  .conversation-turn {
    grid-template-columns: 1fr;
  }
}

/* Projects: alternating rows of a screen recording and the story */
.projects {
  display: grid;
  gap: 5rem;
}

.project {
  display: grid;
  gap: 2rem;
  align-items: center;
  scroll-margin-top: 6rem;
}

@media (min-width: 900px) {
  .project {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .project:nth-child(even) .project-media {
    order: 2;
  }
}

.project-media video,
.project-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.project-copy p {
  color: var(--muted);
}

.project-outcome {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--fg) !important;
}

.project-note {
  margin-top: 1rem;
  font-size: 0.85rem;
}

/* Screener: the intro beside a one-question-at-a-time card */
.screener-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .screener-layout {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

.screener-next {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
}

.screener-next li {
  margin-bottom: 0.5rem;
}

.screener-card {
  padding: 2.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--shadow-lg);
}

.screener-card p {
  color: var(--muted);
}

.screener-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--surface-alt);
}

.screener-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.screener-count {
  margin: 1rem 0 0.25rem;
  font-size: 0.85rem;
}

.screener-step {
  margin: 0;
  padding: 0;
  border: 0;
}

.screener-step legend,
.screener-step h3 {
  margin-bottom: 1rem;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}

.screener-choices {
  display: grid;
  gap: 0.6rem;
}

.screener-choice {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.screener-choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.screener-choice input {
  accent-color: var(--accent-strong);
}

.screener-fields {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .screener-fields {
    grid-template-columns: 1fr 1fr;
  }
  .screener-fields .wide {
    grid-column: 1 / -1;
  }
}

.screener-fields label {
  display: grid;
  gap: 0.3rem;
  color: var(--fg);
  font-size: 0.95rem;
}

.screener-fields input,
.screener-fields textarea {
  width: 100%;
  padding: 0.6rem;
  font: inherit;
}

.screener-fields [aria-invalid="true"] {
  outline: 2px solid #b42318;
}

.screener-fields .opt {
  color: var(--muted);
}

.screener-suggestion {
  font-weight: 600;
}

.screener-privacy {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.screener-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}
