/* Finding You — design tokens + landing styles.
 *
 * Tokens map 1:1 to CSS custom properties so the React seeker / provider
 * apps (Stages 7-9) inherit the same system. Brand notes in .local/BRAND.md.
 *
 * Palette: a warm linen ground with sparing amber accent (the mediator's
 * voice) and a quiet sage for consent / on-track states.
 */

:root {
  /* ── Surface — warm linen, with two recessed tonal bands ────────── */
  --paper:        #f6f3ed;   /* base */
  --paper-warm:   #f2ede4;   /* first tonal band */
  --paper-deep:   #eee8de;   /* second tonal band, recessed */

  /* ── Ink ──────────────────────────────────────────────────────── */
  --ink:          #2e2a24;   /* body, headings */
  --ink-soft:     #5a5247;   /* prose body */
  --ink-muted:    #8c8275;   /* meta, captions */
  --ink-faint:    #a99e8e;   /* placeholders, dividers in copy */

  /* ── Rules and edges ──────────────────────────────────────────── */
  --rule:         #e2dbd0;   /* primary divider */
  --rule-soft:    #eae3d8;   /* lighter inset divider */

  /* ── Accents — earthy terracotta (the mediator's voice) ─────────── */
  --amber:        #b5663f;   /* primary accent — links, numbers */
  --amber-soft:   #d9b79a;
  --amber-glow:   rgba(181, 102, 63, 0.18);
  --accent-deep:  #7a4a2e;   /* "what it isn't", crisis copy */
  --eyebrow:      #a07a55;   /* hero eyebrow */

  --sage:         #5d7a5d;   /* consent / on-track states (chat) */
  --sage-soft:    #b9c7b3;
  --sage-glow:    rgba(93, 122, 93, 0.16);

  --warn:         #8c2f2a;
  --warn-soft:    #d4a4a0;

  /* ── Layout ───────────────────────────────────────────────────── */
  --max:          920px;
  --max-wide:     920px;
  --max-hero:     920px;

  /* ── Type ─────────────────────────────────────────────────────── */
  --sans:  "Hanken Grotesk", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", "Iowan Old Style", "Apple Garamond", Georgia, Cambria, "Times New Roman", serif;
  --mono:  "JetBrains Mono", "SF Mono", ui-monospace, Consolas, "Liberation Mono", monospace;

  /* ── Motion ───────────────────────────────────────────────────── */
  --ease:         cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* A whisper of atmospheric warmth at the top, otherwise flat linen. */
  background-image:
    radial-gradient(ellipse 1200px 560px at 50% -12%, rgba(181, 102, 63, 0.05), transparent 70%);
  background-attachment: fixed;
}

::selection {
  background: #e7d4c7;
  color: var(--ink);
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}
a:hover {
  text-decoration-color: var(--ink);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ──────────────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(251, 245, 234, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
/* A faint edge once the page is scrolled, so the bar reads as floating over
   content rather than welded to the top. */
.site-header.scrolled {
  border-bottom-color: var(--rule-soft);
  box-shadow: 0 8px 24px -18px rgba(42, 38, 32, 0.4);
}
.site-header .wrap {
  max-width: var(--max-wide);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  height: 28px;
  width: auto;
  display: block;
  align-self: center;
}
.brand span {
  font-feature-settings: "ss01";
}
.locale-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
}
.locale-toggle button {
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 500;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  padding: 5px 12px;
  cursor: pointer;
  color: var(--ink-muted);
  border-radius: 999px;
  transition: all 0.2s var(--ease);
}
.locale-toggle button:hover {
  color: var(--ink-soft);
}
.locale-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  padding-top: 120px;
  padding-bottom: 96px;
  max-width: var(--max-hero);
  position: relative;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--amber);
  display: inline-block;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 6.5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 0 0 36px;
  max-width: 22ch;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--amber);
  font-weight: 400;
}
.hero .lede {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0;
  line-height: 1.55;
  font-weight: 400;
}
.hero-mark {
  display: none;
}

/* Staggered entrance — eyebrow, title, lede, then the CTAs settle in. Calm
   and once-only; disabled under prefers-reduced-motion at the foot of the file. */
.hero-eyebrow,
.hero h1,
.hero .lede,
.hero-ctas {
  opacity: 0;
  transform: translateY(12px);
  animation: hero-rise 1.1s var(--ease) forwards;
}
.hero h1 {
  animation-delay: 0.14s;
}
.hero .lede {
  animation-delay: 0.32s;
}
.hero-ctas {
  animation-delay: 0.5s;
}
@keyframes hero-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hero-cta {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.hero-cta:hover {
  transform: translateY(-1px);
}
.hero-cta--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.hero-cta--primary:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}
.hero-cta--ghost {
  color: var(--ink-soft);
  border-color: var(--rule);
}
.hero-cta--ghost:hover {
  color: var(--ink);
  border-color: var(--amber);
}

/* ── Section ─────────────────────────────────────────────────────── */
.section {
  padding-top: 104px;
  padding-bottom: 32px;
  position: relative;
  border-top: 1px solid var(--rule);
  margin-top: 32px;
  /* Anchor jumps (hero CTAs) land below the sticky header, not under it. */
  scroll-margin-top: 80px;
}

/* Scroll reveal — sections rise in once as they enter view. motion.js adds
   .revealed; without JS or with reduced motion they are shown unmoved. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.75s var(--ease);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}
.section-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 38px;
  color: var(--amber);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  line-height: 1;
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.012em;
  margin: 0 0 28px;
  color: var(--ink);
  max-width: 22ch;
  line-height: 1.15;
}
.prose {
  max-width: 60ch;
  color: var(--ink-soft);
  line-height: 1.7;
}
.prose p {
  margin: 0 0 16px;
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── How it works ────────────────────────────────────────────────── */
.how-steps {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
  max-width: 60ch;
}
.how-steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.how-step-num {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1;
  color: var(--amber);
}
.how-steps strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  margin: 6px 0 4px;
}
.how-steps p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}
.how-different {
  margin: 34px 0 0;
  max-width: 60ch;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Quiet escape hatch under the chat: services browse for the visitor who
   wants to look before they talk. */
.talk-browse {
  margin: 26px 0 0;
  text-align: center;
}
.talk-browse a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-decoration: none;
}
.talk-browse a:hover {
  color: var(--amber);
}

/* ── Talk layout: chat + matched-services rail ─────────────────────── */
.talk-layout {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-top: 36px;
}
.talk-layout .chat {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 0; /* the layout owns the top gap now */
}
/* Hidden until the chat surfaces matches, so the chat fills the column until
   then (the no-cards state looks exactly as before). */
.chat-suggest {
  flex: 0 0 240px;
}
.chat-suggest-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 10px;
}
/* Which city we matched for, with a picker to change it. */
.chat-suggest-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
}
.chat-loc-label {
  font-size: 12px;
  color: var(--ink-muted);
  flex: 0 0 auto;
}
.chat-loc-select {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 5px 8px;
  cursor: pointer;
}
.chat-loc-select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}
.chat-suggest-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.suggest-card {
  background: var(--paper-warm);
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  padding: 14px 16px;
  scroll-margin-top: 88px;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.suggest-card-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin: 0 0 6px;
}
.suggest-card-tier {
  color: var(--ink-soft);
}
.suggest-card-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--ink);
}
.suggest-card-summary {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.suggest-card-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  text-decoration: none;
}
.suggest-card-link:hover {
  text-decoration: underline;
}
/* The card a reply ref points at, briefly haloed when its link is clicked. */
.suggest-card.is-flash {
  border-color: var(--amber);
  animation: suggest-flash 1.6s var(--ease);
}
@keyframes suggest-flash {
  0% {
    box-shadow: 0 0 0 3px var(--amber-glow);
  }
  100% {
    box-shadow: 0 0 0 3px rgba(196, 122, 61, 0);
  }
}
/* A grounded, clickable service reference inside the reply text. */
.ref-link {
  font: inherit;
  color: var(--amber);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--amber-soft);
  text-underline-offset: 2px;
}
.ref-link:hover {
  text-decoration-color: var(--amber);
}
@media (max-width: 720px) {
  .talk-layout {
    flex-direction: column;
  }
  .chat-suggest {
    flex-basis: auto;
    width: 100%;
  }
}

/* ── Chat ────────────────────────────────────────────────────────── */
.chat {
  margin-top: 36px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper-warm);
  box-shadow:
    0 1px 0 rgba(42, 38, 32, 0.04),
    0 24px 48px -24px rgba(42, 38, 32, 0.18);
  overflow: hidden;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(180deg, var(--paper-warm) 0%, var(--paper-deep) 100%);
}
.chat-header-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0;
}
.chat-header-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
  box-shadow: 0 0 0 4px var(--amber-glow);
}
.chat-consent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  cursor: pointer;
  user-select: none;
}
.chat-consent input {
  margin: 0;
  accent-color: var(--amber);
}
.chat-consent-text a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 2px;
}
.chat-consent-text a:hover {
  text-decoration-color: var(--amber);
}
.chat-compose textarea,
.field input,
.field textarea {
  font: inherit;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 6px;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.chat-compose textarea:focus,
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}
.chat-error {
  color: var(--warn);
  margin: 14px 0 0;
  font-size: 14px;
}

.chat-transcript {
  padding: 28px;
  min-height: 160px;
  max-height: 540px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--paper-warm);
}
.bubble {
  max-width: 86%;
  padding: 12px 16px;
  border-radius: 14px;
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.55;
}
.bubble.user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 4px;
}
.bubble.assistant {
  align-self: flex-start;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom-left-radius: 4px;
}

.bubble-status {
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.bubble-content {
  white-space: pre-wrap;
}
.typing-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  height: 14px;
}
.typing-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-muted);
  animation: typing-bounce 1.2s infinite ease-in-out;
}
.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-compose {
  display: flex;
  gap: 10px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--rule);
  background: var(--paper-warm);
}
.chat-compose textarea {
  flex: 1;
  font-size: 15px;
  resize: none;
  overflow-y: auto;
  min-height: 80px;
  max-height: 160px;
}
/* Mic: secondary action, lighter than the primary send. Hidden until chat.js
   confirms the browser supports speech recognition, then shown via .ready. */
#chat-mic {
  display: none;
  align-self: center; /* a compact control, not a full-height box */
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  color: var(--ink-muted);
  border: none;
  border-radius: 50%;
}
#chat-mic.ready {
  display: inline-flex;
}
#chat-mic:hover:not(:disabled) {
  background: var(--amber-glow);
  color: var(--accent-deep);
}
#chat-mic.is-recording {
  background: var(--amber);
  color: var(--ink);
  animation: mic-pulse 1.3s var(--ease) infinite;
}
@keyframes mic-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--amber-glow);
  }
  70% {
    box-shadow: 0 0 0 7px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* Save & return — quiet, opt-in, appears once a conversation exists. */
.chat-save {
  padding: 16px 24px 22px;
  border-top: 1px solid var(--rule-soft);
  background: var(--paper-warm);
}
.chat-save-prompt {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 10px;
}
.chat-save-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chat-save-form input {
  flex: 1;
  min-width: 180px;
  font: inherit;
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.chat-save-form input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}
.chat-save-form button {
  font-size: 13px;
  padding: 9px 16px;
}
.chat-save-status {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--sage);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
button {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 11px 22px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
button:hover:not(:disabled) {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}
button:disabled {
  opacity: 0.5;
  cursor: progress;
}

/* Starter chips. Quiet, rounded suggestions under the greeting — an opt-in
   way to begin, not a wall of buttons. The element-qualified selectors sit
   after the global button rules on purpose, so they win the cascade. */
.chat-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 24px 18px;
}
button.chat-starter {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  background: var(--paper);
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  padding: 8px 15px;
  border-radius: 999px;
}
button.chat-starter:hover:not(:disabled) {
  background: var(--paper-warm);
  border-color: var(--amber);
  color: var(--ink);
}

/* ── Waitlist form ───────────────────────────────────────────────── */
.waitlist-form {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 560px;
  padding: 32px;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.waitlist-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.waitlist-form legend,
.field span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
  font-weight: 500;
}
.role {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 8px 12px;
  margin: 0 -12px;
  border-radius: 8px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.role:hover {
  background: var(--paper-deep);
  color: var(--ink);
}
.role input {
  accent-color: var(--amber);
  width: 16px;
  height: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field input,
.field textarea {
  background: var(--paper);
}
.waitlist-form button {
  align-self: flex-start;
}
.waitlist-status {
  font-size: 14px;
  color: var(--sage);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.waitlist-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px var(--sage-glow);
  display: inline-block;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 120px;
  padding-top: 40px;
  padding-bottom: 64px;
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: 14px;
}
.site-footer .wrap {
  max-width: var(--max-wide);
}
.site-footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.site-footer-contacts p {
  margin: 0;
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
}
.site-footer-name {
  color: var(--ink);
  font-weight: 500;
}
.site-footer-tech {
  margin-top: 28px;
  margin-bottom: 0;
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
}
.site-footer-sep {
  color: var(--ink-faint);
}
.site-footer a {
  color: var(--ink-soft);
  text-decoration-color: var(--ink-faint);
}
.site-footer a:hover {
  color: var(--ink);
  text-decoration-color: var(--amber);
}
/* Operator console link: faint and undecorated so it sits quietly at the end
   of the tech row. Surfaces normally on hover for whoever goes looking. */
.site-footer-admin {
  color: var(--ink-faint);
  text-decoration: none;
}
.site-footer-admin:hover {
  color: var(--ink-muted);
  text-decoration: underline;
  text-decoration-color: var(--amber);
}

/* ── Brand page (site/brand.html) ────────────────────────────────── */
.brand-page .hero h1 em {
  /* Brand title shouldn't tonally insist; reset the italic-amber treatment. */
  font-style: normal;
  color: inherit;
}

.brand-logo-display {
  margin-top: 28px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.brand-logo-card {
  flex: 1;
  min-width: 240px;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 36px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.brand-logo-card--ink {
  background: var(--ink);
}
.brand-logo-card--ink .brand-logo-label {
  color: var(--ink-faint);
}
.brand-logo-card img {
  height: 64px;
  width: auto;
}
.brand-logo-card--ink img {
  filter: invert(1) brightness(1.1);
}
.brand-logo-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.brand-swatch-group {
  margin-top: 32px;
}
.brand-swatch-group-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 12px;
}
.brand-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.brand-swatch {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--paper-warm);
}
.brand-swatch-color {
  height: 72px;
}
.brand-swatch-info {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.brand-swatch-info b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}
.brand-swatch-info span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.brand-type-sample {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.brand-type-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 14px;
}
.brand-type-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.brand-type-display em {
  font-style: italic;
  color: var(--amber);
  font-weight: 400;
}
.brand-type-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0;
  color: var(--ink);
}

.brand-ui-row {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.brand-ui-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Smaller screens ─────────────────────────────────────────────── */
@media (max-width: 720px) {
  .hero {
    padding-top: 72px;
    padding-bottom: 64px;
  }
  .section {
    padding-top: 80px;
  }
  .chat-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .waitlist-form {
    padding: 24px;
  }
}

@media (max-width: 460px) {
  body {
    font-size: 16px;
  }
  .hero {
    padding-top: 56px;
  }
  .section-num {
    font-size: 32px;
  }
}

/* ── News band (seeker-facing, curated) ────────────────────────────────── */

.news-band {
  margin-top: 12px;
  margin-bottom: 8px;
  padding: 30px 0 6px;
  border-top: 1px solid var(--rule-soft);
}

.news-band-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 10px;
}

.news-band h2 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0 0 8px;
}

.news-band-lede {
  font-family: var(--serif);
  color: var(--ink-soft);
  max-width: var(--max);
  margin: 0 0 22px;
  line-height: 1.6;
}

.news-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.news-card {
  background: var(--paper-warm);
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  padding: 20px 22px;
  overflow: hidden;
}

/* Optional operator-attached image. Bleeds to the card edges with a rounded
   top, sitting above the meta line. Cards without an image are unaffected. */
.news-card-image {
  display: block;
  width: calc(100% + 44px);
  height: 168px;
  object-fit: cover;
  margin: -20px -22px 16px;
  background: var(--paper-deep);
}

.news-card-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin: 0 0 8px;
}

.news-card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--ink);
}

.news-card-summary {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

.news-card-sources {
  margin-top: 12px;
}

.news-card-sources summary {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  cursor: pointer;
}

.news-card-sources ul {
  margin: 8px 0 0;
  padding-left: 16px;
}

.news-card-sources a {
  color: var(--amber);
  text-decoration: none;
  font-size: 13px;
}

.news-card-sources a:hover {
  text-decoration: underline;
}

/* ── Services band (seeker-facing, curated) ────────────────────────────── */

.svc-band {
  margin-top: 12px;
  padding: 30px 0 6px;
  border-top: 1px solid var(--rule-soft);
}
.svc-band-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 10px;
}
.svc-band h2 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0 0 8px;
}
.svc-band-lede {
  font-family: var(--serif);
  color: var(--ink-soft);
  max-width: var(--max);
  margin: 0 0 18px;
  line-height: 1.6;
}
.svc-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
/* Hidden icon-sprite host. A CSS class, not an inline style — the site CSP is
   style-src 'self' (no unsafe-inline), which would block a style="" attribute. */
.svc-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.svc-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border: 1px solid var(--rule-soft);
  border-radius: 14px;
  background: var(--paper-warm);
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
/* Inherits the chip's currentColor → muted by default, ink on hover, paper when
   active. Sits with the 11px mono label. */
.svc-cat-ic {
  width: 13px;
  height: 13px;
  flex: none;
}
.svc-cat:hover {
  color: var(--ink);
}
.svc-cat.is-active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--paper);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.svc-card {
  background: var(--paper-warm);
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}
.svc-card-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  margin: 0 0 6px;
}
.svc-card-tier {
  color: var(--sage);
}
.svc-card-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--ink);
}
.svc-card-summary {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.svc-card-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  text-decoration: none;
  margin-top: auto;
}
.svc-card-link:hover {
  text-decoration: underline;
}

/* ── Reduced motion ────────────────────────────────────────────────────── */
/* Honour the OS setting: no entrance, no reveal, no smooth-scroll glide. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-eyebrow,
  .hero h1,
  .hero .lede,
  .hero-ctas,
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Conversation-first landing (2026-06) — adopts the "what's on your mind"
   direction: a persistent crisis strip, the live mediator as the hero, an
   honest is/isn't split, warm tonal bands. Earthy terracotta palette set in
   :root above; these are the structural additions + a few hero overrides.
   ════════════════════════════════════════════════════════════════════ */

/* ── Crisis strip: always visible, never inside the chat ──────────────── */
.crisis-strip {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-muted);
}
.crisis-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 9px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
}
.crisis-strip-lead {
  color: var(--ink);
}
.crisis-strip a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.crisis-strip a:hover {
  border-bottom-color: var(--accent-deep);
  color: var(--accent-deep);
}

/* ── Hero: the page opens as the conversation ────────────────────────── */
.hero {
  padding-top: clamp(36px, 8vh, 80px);
  padding-bottom: 56px;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin: 0 0 24px;
}
.hero-eyebrow::before {
  display: none; /* drop the leading dash; the editorial column is calm enough */
}
.hero-question {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  max-width: 16ch;
  color: var(--ink);
}
.hero .lede {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0;
}
.hero .talk-layout {
  margin-top: 34px;
}

/* ── Full-width tonal bands ───────────────────────────────────────────── */
.band {
  border-top: 1px solid var(--rule);
}
.band-soft {
  background: var(--paper-warm);
}
.band-deep {
  background: var(--paper-deep);
}

/* ── What it is / what it isn't ───────────────────────────────────────── */
.whatis-grid {
  padding: 64px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
}
.whatis-grid h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  max-width: none;
}
.whatis-isnt {
  color: var(--accent-deep);
}
.whatis-grid .prose {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 42ch;
}

/* ── How it works: flat numbered rows (override the earlier circle style) ─ */
#how {
  border-top: none;
  padding-top: 72px;
}
#how h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.how-steps {
  display: block;
  margin: 28px 0 0;
  max-width: none;
}
.how-steps li {
  display: flex;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.how-step-num {
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  display: inline;
  font-family: var(--serif);
  font-style: normal;
  font-size: 18px;
  color: var(--amber);
  min-width: 34px;
  flex: none;
}
.how-steps strong {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
}
.how-different {
  border-top: none;
  padding-top: 0;
  margin-top: 28px;
  font-style: normal;
  color: var(--ink-muted);
}

/* ── Privacy as a two-column band ─────────────────────────────────────── */
.privacy-grid {
  padding: 60px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: start;
}
.privacy-grid h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 20ch;
}
.privacy-grid .prose {
  max-width: 52ch;
}

/* ── Footer crisis reminder ───────────────────────────────────────────── */
.foot-crisis {
  font-size: 14px;
  color: var(--accent-deep);
  margin: 0 0 16px;
  line-height: 1.6;
  max-width: 60ch;
}
