/* Regulation HQ — public landing page
   Deep navy + teal with a warm accent. One serif for headings, one clean sans
   for body. System stacks only: zero network cost, no layout shift. */

:root {
  --navy: #0b2233;
  --navy-2: #123249;
  --ink: #1c2b34;
  --muted: #55676f;
  --paper: #fbf9f6;
  --paper-2: #f3efe9;
  --white: #ffffff;
  --teal: #0e6f6b;
  --teal-d: #0a544f;
  --teal-tint: #e8f1ef;
  --warm: #c9743f;
  --warm-ink: #9a4f24; /* darker warm for small text: 5.2:1 on paper */
  --warm-deep: #a3552a; /* darker warm for white-on-warm buttons: 5.4:1 */
  --warm-tint: #f7ece3;
  --line: rgba(11, 34, 51, 0.13);
  --line-soft: rgba(11, 34, 51, 0.08);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Source Serif 4",
    Charter, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --wrap: 70rem;
  --pad: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 34, 51, 0.05), 0 12px 32px rgba(11, 34, 51, 0.07);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
  text-wrap: balance;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-d); text-underline-offset: 0.18em; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.narrow { max-width: 54rem; }
.center { text-align: center; }

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

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  background: var(--navy); color: #fff; padding: 0.7rem 1.2rem;
  border-radius: 0 0 10px 10px; z-index: 100; text-decoration: none; font-weight: 600;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.35rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem;
  line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.9375rem; }

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-d); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-warm { background: var(--warm-deep); color: #fff; }
.btn-warm:hover { background: #8c4722; color: #fff; }

.cta-row { margin-top: 2rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 246, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.35rem);
  font-weight: 600; letter-spacing: -0.01em;
  color: var(--navy); text-decoration: none;
  white-space: nowrap;
}
.brand-mark { width: 2rem; height: 2rem; flex: none; }
.header-cta .btn { white-space: nowrap; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(60rem 30rem at 82% -10%, rgba(14, 111, 107, 0.14), transparent 60%),
    linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 1.25rem;
}
.display {
  font-size: clamp(2.2rem, 1.35rem + 4vw, 4rem);
  margin: 0 0 1.5rem;
  max-width: 20ch;
}
.lede {
  font-size: clamp(1.075rem, 1rem + 0.5vw, 1.3rem);
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.6;
}
.facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem;
  padding: 0; margin: clamp(2.5rem, 6vw, 4rem) 0 0;
}
.facts li {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--navy);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 0.5rem 1rem;
}

/* ---------- Sections ---------- */

.section { padding: var(--section-y) 0; }
.section-alt { background: var(--paper-2); }
.section + .section { border-top: 1px solid var(--line-soft); }

.sec-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--warm-ink); margin-bottom: 0.9rem;
}
.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2, .split-aside h2 {
  font-size: clamp(1.75rem, 1.3rem + 2.1vw, 2.75rem);
  margin: 0 0 1rem;
}
.intro {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  color: var(--muted);
  line-height: 1.65;
}

.split {
  display: grid; gap: clamp(1.75rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(15rem, 0.85fr) 1.6fr; }
  .split-aside { position: sticky; top: 6rem; align-self: start; }
}

/* Problem points */
.points { list-style: none; counter-reset: p; padding: 0; margin: 2rem 0 0;
  display: grid; gap: 1.5rem; }
.points li {
  counter-increment: p; position: relative;
  padding-left: 3.25rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.points li:last-child { border-bottom: 0; padding-bottom: 0; }
.points li::before {
  content: counter(p, decimal-leading-zero);
  position: absolute; left: 0; top: 0.1rem;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  color: var(--teal);
}
.points h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); margin: 0 0 0.35rem; }
.points p { color: var(--muted); margin: 0; }

/* Teaching */
.panel {
  background: var(--teal-tint);
  border: 1px solid rgba(14, 111, 107, 0.22);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.panel h3 { font-size: clamp(1.2rem, 1.1rem + 0.6vw, 1.5rem); margin: 0 0 0.75rem; }
.panel p { color: var(--navy-2); margin: 0; }

.cards {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.35rem, 3vw, 1.9rem);
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 1.2rem; margin: 0 0 0.6rem;
  padding-bottom: 0.6rem; border-bottom: 2px solid var(--warm);
  display: inline-block;
}
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.closing {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  font-family: var(--serif); font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  color: var(--navy); font-style: italic;
}

/* Practice grid */
.grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.tile {
  background: var(--white); border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow);
}
.tile h3 { font-size: 1.1rem; margin: 0 0 0.45rem; color: var(--teal-d); }
.tile p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0;
  display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
}
.steps h3 { font-size: 1.2rem; margin: 0.3rem 0 0.5rem; }
.steps p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.note {
  margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.98rem; max-width: 60ch;
}

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0.85rem; }
@media (min-width: 40rem) { .checklist { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
.checklist li {
  position: relative; padding-left: 2.25rem;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.95rem 1.1rem 0.95rem 2.6rem;
  font-size: 0.98rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 1.05rem; top: 1.32rem;
  width: 0.6rem; height: 0.32rem;
  border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

/* Audience */
.audience { list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0.85rem; }
@media (min-width: 46rem) { .audience { grid-template-columns: repeat(2, 1fr); } }
.audience li {
  background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--warm);
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.35rem; font-weight: 500;
}

/* About */
.about-grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 52rem) {
  .about-grid { grid-template-columns: minmax(14rem, 0.8fr) 1.4fr; }
  .about-grid--text { grid-template-columns: 1fr; max-width: 48rem; }
}
.about-photo { margin: 0; }
.about-photo img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); background: var(--paper-2);
}
.about-body h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); margin: 0 0 0.75rem; }
.role {
  font-weight: 600; color: var(--teal-d); margin-bottom: 0.35rem;
  font-size: 1.05rem;
}
.meta-line {
  font-size: 0.95rem; color: var(--muted); margin-bottom: 0.3rem;
}
.about-body p:not(.sec-label):not(.role):not(.meta-line) {
  margin-top: 1.25rem; color: var(--ink);
}

/* Testimonials */
.quotes {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.quote {
  margin: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%;
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--serif); font-size: 1.1rem; line-height: 1.55;
  color: var(--navy); margin: 0;
}
.quote figcaption {
  margin-top: 1.1rem; padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}

/* FAQ — native <details>, so it works with zero JavaScript */
.faq { display: grid; gap: 0.75rem; text-align: left; }
.faq-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 1.1rem 3.25rem 1.1rem 1.35rem;
  font-family: var(--serif); font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  font-weight: 600; color: var(--navy); line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.35rem; top: 50%;
  transform: translateY(-50%); color: var(--teal);
  font-family: var(--sans); font-size: 1.5rem; font-weight: 400; line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { color: var(--teal-d); }
.faq-item summary:hover { background: rgba(14, 111, 107, 0.05); }
.faq-answer { padding: 0 1.35rem 1.25rem; color: var(--muted); }
.faq-answer p { margin: 0; }

/* ---------- Bands ---------- */

.band { padding: var(--section-y) 0; }
.band h2 { font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.75rem); margin: 0 0 1rem; color: inherit; }
.band p { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem); }
.band-warm {
  background: var(--warm-tint);
  border-top: 1px solid rgba(201, 116, 63, 0.25);
  border-bottom: 1px solid rgba(201, 116, 63, 0.25);
  color: #5c3418;
}
.band-warm h2 { color: #6b3a1a; }
.band-navy {
  background:
    radial-gradient(50rem 25rem at 15% 0%, rgba(14, 111, 107, 0.4), transparent 65%),
    var(--navy);
  color: #dbe6ec;
}
.band-navy h2 { color: #fff; }

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

.site-footer {
  background: var(--navy); color: #9fb4c1;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-inner { display: grid; gap: 0.5rem; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--serif); font-size: 1.3rem; color: #fff; margin: 0;
}
.footer-brand .brand-mark { width: 1.7rem; height: 1.7rem; }
.footer-contact a, .footer-nav a { color: #cfe0e8; text-decoration: none; }
.footer-contact a:hover, .footer-nav a:hover { text-decoration: underline; }
.footer-nav { margin: 0.35rem 0 0; }
.footer-copy { font-size: 0.9rem; margin: 0.5rem 0 0; color: #7f97a5; }

/* ---------- Long-form pages (privacy policy) ---------- */

.policy .display { margin-bottom: 1rem; max-width: none; }
.policy h2 {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
  margin: clamp(2.25rem, 5vw, 3rem) 0 0.75rem;
}
.policy p { color: var(--muted); line-height: 1.65; }
.policy .checklist { margin: 1.25rem 0 0; }
.policy .checklist li { color: var(--ink); }

/* The optional unsubscribe form (long-form pages) */
.policy .unsub-form {
  display: grid; gap: 0.6rem; margin: 1.5rem 0 0; max-width: 24rem;
}
.policy .unsub-form label { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.policy .unsub-form input {
  font: inherit; padding: 0.7rem 0.85rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.policy .unsub-form input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.policy .unsub-form .btn { justify-self: start; }

/* ---------- Riva, the chat ---------- */

/* Both controls are rendered hidden and revealed by chat.js, so a visitor
   without JavaScript never sees a button that does nothing. */
.chat-launcher {
  position: fixed; right: var(--pad); bottom: var(--pad); z-index: 50;
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1.25rem 0.8rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px;
  background: linear-gradient(140deg, var(--navy-2) 0%, var(--navy) 58%, #061722 100%);
  color: #fff; font: inherit; font-weight: 600; cursor: pointer;
  box-shadow: 0 1px 2px rgba(11, 34, 51, 0.18), 0 12px 28px rgba(11, 34, 51, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(11, 34, 51, 0.2), 0 18px 38px rgba(11, 34, 51, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.chat-launcher:active { transform: translateY(0); }
/* A slow teal breath rather than a blink: it is the one element on the page
   inviting a click. It draws the eye on arrival and then settles - four breaths,
   not forever - stops the moment the pointer arrives, and the global
   prefers-reduced-motion rule flattens it to nothing. */
.chat-launcher:not(:hover) { animation: chat-halo 4s ease-in-out 4; }
@keyframes chat-halo {
  0%, 100% { box-shadow: 0 1px 2px rgba(11, 34, 51, 0.18), 0 12px 28px rgba(11, 34, 51, 0.28), 0 0 0 0 rgba(14, 111, 107, 0.45); }
  60% { box-shadow: 0 1px 2px rgba(11, 34, 51, 0.18), 0 12px 28px rgba(11, 34, 51, 0.28), 0 0 0 0.85rem rgba(14, 111, 107, 0); }
}
.chat-launcher-mark { flex: none; }

.chat-panel {
  position: fixed; right: var(--pad); bottom: var(--pad); z-index: 51;
  display: flex; flex-direction: column;
  width: min(24rem, calc(100vw - 2 * var(--pad)));
  max-height: min(35rem, calc(100vh - 2 * var(--pad)));
  max-height: min(35rem, calc(100dvh - 2 * var(--pad)));
  background: var(--white); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 34, 51, 0.07), 0 26px 60px rgba(11, 34, 51, 0.26);
  animation: chat-lift 0.22s ease-out both;
}
.chat-panel[hidden] { display: none; }
/* Opening a chat is a small arrival: it settles rather than appears. */
@keyframes chat-lift {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.chat-head {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  padding: 0.8rem 0.8rem 0.8rem 1rem;
  background: linear-gradient(140deg, var(--navy-2) 0%, var(--navy) 72%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  /* The brand line along the top edge, drawn in the header itself. */
  box-shadow: inset 0 4px 0 var(--teal);
  color: #fff;
}
.chat-name {
  display: flex; align-items: center; gap: 0.45rem;
  margin: 0; font-family: var(--serif); font-size: 1.2rem; color: #fff;
}
/* Presence: a quiet dot, the only chrome that suggests someone is listening. */
.chat-name::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: #57c9a5; box-shadow: 0 0 0 3px rgba(87, 201, 165, 0.18);
}
.chat-role { margin: 0.15rem 0 0; font-size: 0.76rem; color: #b8ccd7; }
.chat-close {
  grid-column: 2; grid-row: 1 / span 2; align-self: start;
  display: grid; place-items: center; width: 1.9rem; height: 1.9rem; padding: 0;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.08);
  color: #cfe0e8; font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.chat-close:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* Cream behind the bubbles, so the white ones read as cards rather than as
   holes in a white panel. */
.chat-log {
  flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain;
  margin: 0; padding: 1.1rem 1rem; list-style: none;
  display: flex; flex-direction: column; gap: 0.7rem;
  background: var(--paper);
  scrollbar-width: thin; scrollbar-color: rgba(11, 34, 51, 0.2) transparent;
}
.chat-log::-webkit-scrollbar { width: 0.5rem; }
.chat-log::-webkit-scrollbar-track { background: transparent; }
.chat-log::-webkit-scrollbar-thumb { background: rgba(11, 34, 51, 0.16); border-radius: 999px; }

.chat-msg {
  max-width: 86%; padding: 0.62rem 0.85rem; border-radius: 16px;
  font-size: 0.94rem; line-height: 1.55;
  white-space: pre-wrap; overflow-wrap: anywhere;
  text-wrap: pretty;
  animation: chat-in 0.24s ease-out both;
}
@keyframes chat-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
.chat-msg-riva {
  align-self: flex-start; background: var(--white); color: var(--ink);
  border: 1px solid var(--line-soft); border-bottom-left-radius: 6px;
  box-shadow: 0 1px 2px rgba(11, 34, 51, 0.05);
}
.chat-msg-you {
  align-self: flex-end; color: #fff; border-bottom-right-radius: 6px;
  background: linear-gradient(140deg, var(--navy-2), var(--navy));
  box-shadow: 0 2px 10px rgba(11, 34, 51, 0.18);
}
.chat-msg-error {
  align-self: flex-start; background: var(--warm-tint); color: var(--warm-ink);
  border: 1px solid rgba(163, 85, 42, 0.16); border-bottom-left-radius: 6px;
}
/* The booking link is the point of half her replies; it should not look like
   the rest of the sentence. */
.chat-msg a { font-weight: 600; }

.chat-form {
  display: flex; align-items: flex-end; gap: 0.55rem;
  padding: 0.75rem 0.8rem; background: var(--white);
  border-top: 1px solid var(--line-soft);
}
.chat-input {
  flex: 1 1 auto; min-height: 2.7rem; max-height: 7rem;
  padding: 0.62rem 0.8rem; resize: none;
  font: inherit; font-size: 0.94rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 13px;
  box-shadow: inset 0 1px 2px rgba(11, 34, 51, 0.04);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.chat-input::placeholder { color: #6f8089; }
.chat-input:focus { background: var(--white); border-color: var(--teal); }
.chat-input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.chat-send { padding: 0.62rem 1.05rem; font-size: 0.9rem; border-radius: 12px; }
.chat-send[disabled] { opacity: 0.5; cursor: default; transform: none; }
.chat-note {
  margin: 0; padding: 0.6rem 0.85rem 0.7rem;
  font-size: 0.7rem; line-height: 1.5; color: var(--muted);
  background: var(--white); border-top: 1px solid var(--line-soft);
  /* Keeps "privacy" off a line of its own. */
  text-wrap: pretty;
}
.chat-note a { color: var(--teal-d); }

/* ---------- Small screens ---------- */

@media (max-width: 40rem) {
  .header-inner { min-height: 3.75rem; gap: 0.6rem; }
  /* A sheet that rose from the bottom, with the handle that says so. */
  .chat-panel {
    right: 0; left: 0; bottom: 0; width: auto;
    max-height: 88vh; max-height: 88dvh;
    border-radius: 20px 20px 0 0; border-bottom: 0;
  }
  .chat-head { padding-top: 1.15rem; }
  .chat-head::before {
    content: ""; position: absolute; top: 0.5rem; left: 50%;
    transform: translateX(-50%);
    width: 2.6rem; height: 0.22rem; border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
  }
  .brand { font-size: 1.05rem; }
  .brand-mark { width: 1.75rem; height: 1.75rem; }
  .header-cta .btn {
    padding: 0.45rem 0.7rem; font-size: 0.78rem; letter-spacing: -0.01em;
  }
  .btn { width: auto; }
  .facts li { font-size: 0.78rem; padding: 0.45rem 0.8rem; }
}

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

@media print {
  .site-header, .btn, .skip-link, .chat { display: none !important; }
  body { background: #fff; }
  .section, .band { padding: 1.5rem 0; break-inside: avoid; }
}
