/* ============================================================
   Worksherpa marketing site - shared design system
   Brand: navy #1F2A44 + amber #F08A24 on warm light surfaces.
   Modern, airy, generous whitespace. Used by every page.
   ============================================================ */

:root {
  /* Brand */
  --navy: #1f2a44;
  --navy-soft: #2b3852;
  --amber: #f08a24;
  --amber-deep: #b5641a;
  --amber-soft: #fce6cc;

  /* Surfaces — warm, light */
  --canvas: #faf8f4; /* page background */
  --cream: #f5f3ef; /* tinted section */
  --card: #ffffff; /* cards */
  --sand: #efece4; /* soft fills */

  /* Ink */
  --ink: #1f2a44; /* headings */
  --body: #4b5468; /* body copy */
  --mute: #828a9c; /* captions */
  --ink-70: #4b5468; /* aliases used by the ported product-demo section */
  --ink-50: #828a9c;
  --line: #e7e3da; /* hairlines */
  --line-soft: #f0ece3;

  /* Accents for product chrome */
  --green: #2e9e6b;
  --blue: #2f6df0;
  --purple: #7c5cf0;

  /* Type */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Shape & depth */
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(31, 42, 68, 0.06), 0 2px 8px rgba(31, 42, 68, 0.05);
  --shadow: 0 8px 30px rgba(31, 42, 68, 0.08);
  --shadow-lg: 0 24px 70px rgba(31, 42, 68, 0.16);

  --content: 1120px;
  --nav-h: 70px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Clip any horizontal overflow (e.g. the oversized footer wordmark on
     small screens) so the page never scrolls sideways. `clip` - not
     `hidden` - so the sticky nav keeps working. */
  overflow-x: clip;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.section {
  padding: 84px 0;
}
.section--tight {
  padding: 56px 0;
}
.section--cream {
  background: var(--cream);
}
.section--navy {
  background: var(--navy);
  color: rgba(245, 243, 239, 0.82);
}
.divider {
  height: 1px;
  background: var(--line);
}

/* ── Typography ───────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 0 0 14px;
}
.section--navy .eyebrow {
  color: var(--amber);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0;
}
.section--navy h1,
.section--navy h2,
.section--navy h3 {
  color: #fff;
}
.display {
  font-size: clamp(40px, 6vw, 66px);
  letter-spacing: -0.032em;
  line-height: 1.02;
}
h2.title {
  font-size: clamp(30px, 4vw, 42px);
}
h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
}
.accent {
  color: var(--amber);
}
.lede {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--body);
  margin: 18px 0 0;
}
.section--navy .lede {
  color: rgba(245, 243, 239, 0.8);
}
.muted {
  color: var(--mute);
}
.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 6px 18px rgba(240, 138, 36, 0.32);
}
.btn--primary:hover {
  background: var(--amber-deep);
}
.btn--secondary {
  background: var(--navy);
  color: #fff;
}
.btn--secondary:hover {
  background: var(--navy-soft);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: #fff;
}
.section--navy .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.section--navy .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.btn--lg {
  padding: 16px 28px;
  font-size: 16px;
}

/* ── Pills & badges ───────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}
.section--navy .pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.pill .tick {
  color: var(--amber);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber-deep);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Cards & tiles ────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.tile .ico {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--amber-soft);
  color: var(--amber-deep);
  margin-bottom: 16px;
}
.tile h3 {
  margin-bottom: 8px;
}
.tile p {
  margin: 0;
  font-size: 15px;
  color: var(--body);
}

/* grids */
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

/* bullets */
.bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
}
.bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.bullets .tick {
  flex: none;
  margin-top: 3px;
  color: var(--green);
}

/* ── Product mockup card (chat/quote/schedule) ────────────── */
.mock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.mock__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}
.mock__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.mock__body {
  padding: 20px;
}
.bubble {
  border-radius: 13px;
  padding: 11px 14px;
  font-size: 14.5px;
  color: #2a3242;
  line-height: 1.45;
}
.bubble--in {
  background: var(--sand);
  max-width: 86%;
}
.bubble--ai {
  background: #fff7e6;
  border: 1px solid #f1d79a;
  max-width: 90%;
  margin-left: auto;
  margin-top: 12px;
}
.bubble--ai .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 5px;
}

/* ── Nav (floating pill) ──────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav__inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 14px 24px;
}
.nav__pill {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 58px;
  padding: 0 10px 0 18px;
  background: rgba(250, 248, 244, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 28px rgba(31, 42, 68, 0.09);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: 16px;
}
.nav__brand img {
  height: 28px;
  width: auto;
}
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav__wordmark .s {
  color: var(--amber);
}
.nav__links {
  display: flex;
  gap: 1px;
  margin: 0 auto;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--body);
  padding: 8px 9px;
  border-radius: 999px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.nav__links a:hover {
  color: var(--ink);
  background: rgba(31, 42, 68, 0.06);
}
.nav__links a.is-active {
  color: var(--ink);
  background: var(--sand);
  font-weight: 600;
}
/* Every nav item gets a small amber outline icon with a gentle idle
   animation (staggered durations so the bar feels alive, not busy). */
.nav__ico {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--amber);
  transform-origin: center;
}
.nav__signin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.nav__ico--home {
  animation: nav-bob 3s ease-in-out infinite;
}
.nav__ico--how {
  animation: nav-nudge 3.4s ease-in-out infinite;
}
.nav__ico--features {
  animation: nav-pulse 3.2s ease-in-out infinite;
}
.nav__ico--app {
  animation: nav-bob 2.8s ease-in-out infinite;
}
.nav__ico--ai {
  animation: nav-twinkle 2.6s ease-in-out infinite;
}
.nav__ico--about {
  animation: nav-tilt 3.6s ease-in-out infinite;
}
.nav__ico--signin {
  animation: nav-nudge 3.1s ease-in-out infinite;
}
@keyframes nav-twinkle {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.88) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.14) rotate(10deg);
  }
}
@keyframes nav-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2.5px);
  }
}
@keyframes nav-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(2px);
  }
}
@keyframes nav-pulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}
@keyframes nav-tilt {
  0%,
  100% {
    transform: rotate(-7deg);
  }
  50% {
    transform: rotate(7deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav__ico {
    animation: none !important;
  }
}
.nav__cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__signin {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  padding: 6px;
}

/* ── Footer (bold) ────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(245, 243, 239, 0.62);
  padding: 0 0 32px;
  margin-top: 8px;
  overflow: hidden;
}
.footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 56px 0 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 44px;
}
.footer__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 10px;
}
.footer__cta h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  max-width: 560px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.15fr;
  gap: 34px;
  margin-bottom: 36px;
}
.footer__brand {
  max-width: 300px;
}
.footer__brand .nav__wordmark {
  color: #fff;
}
.footer__brand p {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 14px 0 0;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 243, 239, 0.45);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer__col a {
  display: block;
  font-size: 14.5px;
  color: rgba(245, 243, 239, 0.75);
  margin-bottom: 10px;
  transition: color 0.15s ease;
}
.footer__col a:hover {
  color: #fff;
}
.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 17vw, 210px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.06);
  margin: 4px 0 0;
  user-select: none;
  white-space: nowrap;
}
.footer__wordmark span {
  color: rgba(240, 138, 36, 0.22);
}
.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(245, 243, 239, 0.5);
}
@media (max-width: 760px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ── Reveal-on-scroll ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .eyebrow .dot {
    animation: none;
  }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .section {
    padding: 60px 0;
  }
}
/* Switch to the hamburger early enough that the icon-rich desktop nav
   never overflows on small laptops / tablets. */
@media (max-width: 960px) {
  .nav__links,
  .nav__signin,
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: block;
    margin-left: auto;
  }
  .mobile-menu .nav__links {
    display: flex;
  }
}
@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* mobile dropdown menu */
.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
  padding: 8px 24px 18px;
}
.mobile-menu.open {
  display: block;
}
.mobile-menu .nav__links {
  flex-direction: column;
  gap: 4px;
  margin: 0;
}
.mobile-menu .nav__links a {
  padding: 10px 0;
}

/* ============================================================
   New-design components (ported from the 2026 redesign,
   recoloured to the navy + amber brand). Shared across pages.
   ============================================================ */

/* ── Eyebrow with a number/step rail ─────────────────────── */
.step-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ── Photo placeholder (drop a real image here later) ─────── */
.photo {
  margin: 0;
}
.photo__slot {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px;
  background: linear-gradient(135deg, var(--sand), var(--cream));
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--mute);
  overflow: hidden;
}
.photo__slot::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23b8b0a2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.5;
  pointer-events: none;
}
.photo__hint {
  position: relative;
  z-index: 1;
  max-width: 80%;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  margin-top: 56px;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.photo figcaption {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--mute);
  line-height: 1.5;
}

/* ── Animated lifestyle photo (Ken Burns + hover zoom) ───── */
.photo__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: var(--sand);
}
.photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  border-radius: 0;
  transform: scale(1.06);
  animation: ws-kenburns 12s ease-in-out infinite alternate;
  transition: transform 0.6s ease;
}
.photo__frame:hover img {
  transform: scale(1.16);
  animation-play-state: paused;
}
.photo--square .photo__frame {
  aspect-ratio: 1 / 1;
}
.photo--wide .photo__frame {
  aspect-ratio: 3 / 2;
}
@keyframes ws-kenburns {
  0% {
    transform: scale(1.06) translate(2%, 1.5%);
  }
  100% {
    transform: scale(1.18) translate(-2.5%, -3.5%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .photo__frame img {
    animation: none;
    transform: none;
  }
  .photo__frame:hover img {
    transform: none;
  }
}

/* ── Animated chat (customer message → Sherpa AI reply) ──── */
.chat-seq .bubble--in {
  opacity: 0;
  animation: chat-cust 7s ease-in-out infinite;
}
.chat-seq .typing {
  opacity: 0;
  animation: chat-type 7s ease-in-out infinite;
}
.chat-seq .bubble--ai,
.chat-seq .chat-actions {
  opacity: 0;
  animation: chat-reply 7s ease-in-out infinite;
}
@keyframes chat-cust {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  6% {
    opacity: 1;
    transform: none;
  }
  92% {
    opacity: 1;
  }
  98% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes chat-type {
  0%,
  10% {
    opacity: 0;
  }
  15%,
  28% {
    opacity: 1;
  }
  34%,
  100% {
    opacity: 0;
  }
}
@keyframes chat-reply {
  0%,
  34% {
    opacity: 0;
    transform: translateY(10px);
  }
  42% {
    opacity: 1;
    transform: none;
  }
  92% {
    opacity: 1;
  }
  98% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  background: #fff7e6;
  border: 1px solid #f1d79a;
  border-radius: 13px;
  padding: 12px 15px;
  margin-top: 12px;
  margin-left: auto;
}
.typing i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--amber);
  animation: typing-dot 1.1s ease-in-out infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.18s;
}
.typing i:nth-child(3) {
  animation-delay: 0.36s;
}
@keyframes typing-dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
/* typing overlays the reply slot so it reserves no extra space */
.ai-slot {
  position: relative;
  margin-top: 12px;
}
.ai-slot .bubble--ai {
  margin-top: 0;
}
.ai-slot .typing {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
}
/* Sherpa AI avatar chip inside the reply tag */
.ai-ava {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--amber);
  color: #fff;
  margin-right: 7px;
  flex: none;
}
.ai-ava svg {
  width: 11px;
  height: 11px;
}
.bubble--ai .tag {
  display: flex;
  align-items: center;
}
@media (prefers-reduced-motion: reduce) {
  .chat-seq .bubble--in,
  .chat-seq .bubble--ai,
  .chat-seq .chat-actions {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
  .chat-seq .typing {
    display: none;
  }
  .typing i {
    animation: none;
  }
}

/* ── Animated inbox (a new inquiry arrives) ──────────────── */
.inbox-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.inbox-list .inbox-row:last-child {
  border-bottom: 0;
}
.inbox-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--amber);
  flex: none;
  margin-top: 5px;
}
.inbox-dot--read {
  background: var(--line);
}
.inbox-dot--new {
  animation: inbox-pulse 1.6s ease-in-out infinite;
}
.inbox-main {
  flex: 1;
  min-width: 0;
}
.inbox-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.inbox-snip {
  font-size: 13px;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.inbox-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
  white-space: nowrap;
  flex: none;
}
.inbox-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--amber);
  padding: 2px 7px;
  border-radius: 999px;
}
.inbox-row--new {
  background: #fff7e6;
  border: 1px solid #f1d79a;
  border-radius: 10px;
  padding: 11px;
  margin-bottom: 6px;
}
.inbox-new {
  overflow: hidden;
  animation: inbox-arrive 6s ease-in-out infinite;
}
@keyframes inbox-arrive {
  0%,
  6% {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
  }
  16% {
    max-height: 96px;
    opacity: 1;
    transform: none;
  }
  90% {
    max-height: 96px;
    opacity: 1;
  }
  97%,
  100% {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
  }
}
@keyframes inbox-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.55;
  }
}
@media (prefers-reduced-motion: reduce) {
  .inbox-new {
    animation: none;
    max-height: none;
    opacity: 1;
  }
  .inbox-dot--new {
    animation: none;
  }
}

/* ── Sherpa Assist mock header (logo + label) ────────────── */
.mock__brand {
  display: inline-flex;
  align-items: center;
}
.mock__brand img {
  height: 18px;
  width: auto;
  display: block;
}

/* ── Auto-scrolling screenshot carousel (marquee) ────────── */
.shot-marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.shot-track {
  display: flex;
  width: max-content;
  animation: ws-marquee 40s linear infinite;
}
.shot-marquee:hover .shot-track {
  animation-play-state: paused;
}
.shot-track .shotfig {
  width: 460px;
  flex: none;
  margin-right: 24px;
  transition: transform 0.2s ease;
}
.shot-track .shotfig:hover {
  transform: translateY(-4px);
}
/* uniform top-cropped tiles so sparse screens show no whitespace */
.shot-track .shot img {
  height: 270px;
  object-fit: cover;
  object-position: top center;
}
@keyframes ws-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 600px) {
  .shot-track .shotfig {
    width: 300px;
    margin-right: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .shot-track {
    animation: none;
  }
  .shot-marquee {
    overflow-x: auto;
  }
}

/* ── Animated illustration frame ─────────────────────────── */
.illus__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--cream);
  line-height: 0;
}
.illus__frame img {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
  border-radius: 0;
}

/* ── Framed product screenshot (real app shots) ──────────── */
.shotfig {
  margin: 0;
}
.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.shot__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--cream);
  border-bottom: 1px solid var(--line-soft);
}
.shot__bar i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d9d3c7;
  display: block;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
}
.shotfig figcaption {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--mute);
  line-height: 1.5;
}

/* ── Big tabbed product showcase (legible, full width) ───── */
.showcase-x {
  max-width: 1040px;
  margin: 0 auto;
}
.sx-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.sx-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--body);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.sx-tabs button:hover {
  border-color: var(--ink);
}
.sx-tabs button.is-on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.shot__url {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mute);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
}

/* crossfading screenshot stack */
.sx-frames {
  position: relative;
  aspect-ratio: 8 / 5;
  background: var(--cream);
}
.sx-frames img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transform: scale(1.01);
  transition:
    opacity 0.5s ease,
    transform 0.6s ease;
}
.sx-frames img.is-on {
  opacity: 1;
  transform: none;
}
.sx-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--mute);
  min-height: 1.4em;
}

/* 2×2 screenshot grid ("every corner of the app") */
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.app-grid .shotfig {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.app-grid .shotfig:hover {
  transform: translateY(-4px);
}
.app-grid .shotfig:hover .shot {
  box-shadow: var(--shadow-lg);
}
@media (max-width: 760px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
}

/* ── App-page animations (reduced-motion safe) ───────────── */
@keyframes ws-vbar {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}
@keyframes ws-pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(240, 138, 36, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(240, 138, 36, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(240, 138, 36, 0);
  }
}
@keyframes ws-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.anim-wave i {
  transform-origin: center bottom;
  animation: ws-vbar 1.1s ease-in-out infinite;
}
.anim-wave i:nth-child(2n) {
  animation-duration: 0.8s;
}
.anim-wave i:nth-child(3n) {
  animation-duration: 1.4s;
}
.anim-pulse {
  animation: ws-pulse-ring 2s ease-out infinite;
}
.anim-float {
  animation: ws-float 4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .sx-frames img {
    transition: none;
  }
  .anim-wave i,
  .anim-pulse,
  .anim-float {
    animation: none;
  }
}

/* ── Legible mini-mocks for half-width columns ───────────── */
.mlist {
  margin: 0;
}
.mrow {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
}
.mrow:first-child {
  border-top: 0;
}
.mrow .bar {
  width: 3px;
  align-self: stretch;
  border-radius: 999px;
  background: var(--amber);
  flex: none;
}
.mrow .ico-dot {
  flex: none;
  margin-top: 1px;
  color: var(--green);
}
.mrow .t {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.mrow .s {
  font-size: 13px;
  color: var(--mute);
}
.mrow .when {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mute);
  white-space: nowrap;
}
.mtag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber-deep);
  white-space: nowrap;
  align-self: center;
}

/* ── Product mock variants (quote / schedule / voice) ─────── */
.mock--flat {
  box-shadow: var(--shadow);
}
.quote-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.quote-head b {
  font-size: 16px;
  color: var(--ink);
}
.quote-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
}
.quote-row span:first-child {
  color: var(--body);
}
.quote-row span:last-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.quote-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 12px;
  font-weight: 600;
  color: var(--ink);
}
.quote-total .amt {
  font-size: 18px;
  font-family: var(--font-display);
}

.sched-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.sched-day {
  min-height: 92px;
}
.sched-day .dow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
}
.sched-day .dnum {
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}
.sched-job {
  font-size: 10.5px;
  line-height: 1.25;
  font-weight: 600;
  color: #2a3242;
  background: var(--sand);
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  padding: 5px 6px;
  margin-bottom: 5px;
}
.sched-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--mute);
}
.sched-foot .tick {
  color: var(--green);
}

.voice-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.voice-mic {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--amber);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 34px;
}
.voice-wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--ink-50);
}
.voice-wave i.on {
  background: var(--amber);
}
.voice-time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mute);
}
.voice-quote {
  font-size: 14px;
  font-style: italic;
  color: #2a3242;
  line-height: 1.55;
  margin-bottom: 14px;
}
.voice-out {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.voice-out div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--mute);
}
.voice-out .tick {
  color: var(--green);
  flex: none;
}
.voice-out b {
  color: var(--ink);
}

/* ── Step rows (how it works) ─────────────────────────────── */
.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--line-soft);
}
.step:first-child {
  border-top: 0;
}
.step__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.step__num {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  flex: none;
  background: var(--amber);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
}
.step h3 {
  font-size: 26px;
  margin-bottom: 10px;
}
.step p {
  font-size: 17px;
  color: var(--body);
  margin: 0;
  max-width: 440px;
}
.step--reverse .step__text {
  order: 2;
}
.step--reverse .step__visual {
  order: 1;
}

/* ── Feature rows (features) ──────────────────────────────── */
.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 52px 0;
  border-top: 1px solid var(--line-soft);
}
.frow:first-child {
  border-top: 0;
}
.frow__head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}
.frow__ico {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  flex: none;
  background: var(--amber-soft);
  color: var(--amber-deep);
  display: grid;
  place-items: center;
}
.frow h3 {
  font-size: 28px;
  margin-bottom: 12px;
}
.frow p.lede {
  margin: 0 0 18px;
  max-width: 440px;
  font-size: 17px;
}
.frow--reverse .frow__text {
  order: 2;
}
.frow--reverse .frow__visual {
  order: 1;
}

/* ── White CTA band ───────────────────────────────────────── */
.cta-band {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cta-band__inner {
  max-width: 580px;
}
.cta-band h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin-bottom: 14px;
}
.cta-band p {
  font-size: 17px;
  color: var(--body);
  margin: 0 0 26px;
}

/* ── Sherpa AI reference page ─────────────────────────────── */
.ai-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 40px;
  align-items: start;
}
.doc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 28px 24px;
  box-shadow: var(--shadow-sm);
}
.spec {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
}
.spec:first-child {
  border-top: 0;
}
.spec__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 3px;
}
.spec__body .pillset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.codeblock {
  position: relative;
  background: var(--navy);
  color: #f5f3ef;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  overflow: auto;
}
.codeblock .lang {
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(245, 243, 239, 0.45);
}
.codeblock pre {
  margin: 0;
}
.codeblock code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre;
  color: #e7ecf5;
}
.ai-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ai-side .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 10px;
}

/* ── Early-access form (shared field styling) ─────────────── */
.ea-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.ea-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.ea-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.ea-form__head h3 {
  font-size: 21px;
}
.badge--green {
  background: #d9eddf;
  color: var(--green);
  font-family: var(--font-mono);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.field .req {
  color: #cd4239;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15.5px;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.field textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.5;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(240, 138, 36, 0.18);
}
.ea-mailto {
  text-align: center;
  font-size: 13.5px;
  color: var(--mute);
  margin: 6px 0 0;
}
.ea-mailto a {
  color: var(--amber-deep);
  font-weight: 600;
}

/* ── More-grid responsive for the new rows ────────────────── */
@media (max-width: 900px) {
  .step,
  .frow,
  .ai-grid,
  .ea-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .step--reverse .step__text,
  .step--reverse .step__visual,
  .frow--reverse .frow__text,
  .frow--reverse .frow__visual {
    order: 0;
  }
}
@media (max-width: 600px) {
  .spec {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .field--row {
    grid-template-columns: 1fr;
  }
}

/* ── Sherpa Assist — website Q&A widget ──────────────────────────────── */
.assist-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--amber);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(240, 138, 36, 0.4);
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.assist-fab:hover {
  transform: translateY(-2px);
  background: var(--amber-deep);
}
.assist-fab svg {
  width: 20px;
  height: 20px;
}
.assist-fab.is-hidden {
  display: none;
}

.assist-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 61;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 40px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.assist-panel.open {
  display: flex;
  animation: assistIn 0.25s ease;
}
@keyframes assistIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.assist-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--navy);
  color: #fff;
}
.assist-head img {
  height: 22px;
  width: auto;
}
.assist-head .t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.1;
}
.assist-head .s {
  font-size: 11.5px;
  color: rgba(245, 243, 239, 0.6);
}
.assist-head .x {
  margin-left: auto;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  opacity: 0.8;
  font-size: 22px;
  line-height: 1;
  padding: 2px 4px;
}
.assist-head .x:hover {
  opacity: 1;
}
.assist-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--canvas);
}
.assist-msg {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.assist-msg--bot {
  background: var(--card);
  border: 1px solid var(--line);
  color: #2a3242;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}
.assist-msg--user {
  background: var(--navy);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}
.assist-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 5px;
  padding: 13px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.assist-typing i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--mute);
  animation: typing-dot 1.1s ease-in-out infinite;
}
.assist-typing i:nth-child(2) {
  animation-delay: 0.18s;
}
.assist-typing i:nth-child(3) {
  animation-delay: 0.36s;
}
.assist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.assist-chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  text-align: left;
}
.assist-chip:hover {
  border-color: var(--amber);
  color: var(--amber-deep);
}
.assist-foot {
  border-top: 1px solid var(--line);
  padding: 10px;
  display: flex;
  gap: 8px;
  background: var(--card);
}
.assist-foot input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}
.assist-foot input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(240, 138, 36, 0.16);
}
.assist-foot button {
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--amber);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.assist-foot button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.assist-foot button svg {
  width: 18px;
  height: 18px;
}
.assist-note {
  font-size: 10.5px;
  color: var(--mute);
  text-align: center;
  padding: 0 10px 9px;
  background: var(--card);
}
@media (max-width: 640px) {
  .assist-panel {
    right: 8px;
    bottom: 8px;
    height: min(72vh, 560px);
  }
  .assist-fab {
    right: 14px;
    bottom: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .assist-panel.open {
    animation: none;
  }
  .assist-typing i {
    animation: none;
  }
}

/* Sherpa Assist — rich bot message formatting (paragraphs, lists, links) */
.assist-msg--bot {
  white-space: normal;
}
.assist-msg--bot p {
  margin: 0 0 8px;
}
.assist-msg--bot p:last-child {
  margin-bottom: 0;
}
.assist-msg--bot ul {
  margin: 6px 0;
  padding-left: 18px;
}
.assist-msg--bot li {
  margin: 3px 0;
}
.assist-msg--bot strong {
  font-weight: 700;
  color: var(--ink);
}
.assist-msg--bot a {
  color: var(--amber-deep);
  font-weight: 600;
  text-decoration: underline;
}

/* ── Legal pages (terms / privacy / AI policy / hub) ─────────────── */
.legal__wrap {
  max-width: 780px;
}
.legal__title {
  margin-bottom: 8px;
}
.legal__meta {
  color: var(--mute);
  font-size: 15px;
  margin: 0 0 24px;
}
.legal__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 30px;
}
.legal__navlink {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  color: var(--mute);
  text-decoration: none;
}
.legal__navlink:hover {
  color: var(--amber-deep);
  border-color: var(--amber-deep);
}
.legal__navlink.is-current {
  background: var(--cream);
  color: var(--ink);
  border-color: transparent;
}

/* Long-form legal prose: generous measure, clear hierarchy. */
.legal__body {
  color: var(--ink-70);
  font-size: 16.5px;
  line-height: 1.72;
}
.legal__body h2 {
  font-family: var(--font-display);
  font-size: 25px;
  color: var(--ink);
  margin: 44px 0 12px;
  scroll-margin-top: 90px;
}
.legal__body h3 {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
  margin: 30px 0 8px;
}
.legal__body p {
  margin: 0 0 16px;
}
.legal__body ul {
  margin: 0 0 18px;
  padding-left: 22px;
}
.legal__body li {
  margin: 7px 0;
}
.legal__body a {
  color: var(--amber-deep);
  font-weight: 600;
}

/* Hub page cards. */
.legal__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 36px 0 28px;
}
.legal__card {
  display: block;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.legal__card:hover {
  border-color: var(--amber-deep);
  transform: translateY(-2px);
}
.legal__card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 10px;
}
.legal__card p {
  color: var(--ink-70);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 14px;
}
.legal__cardlink {
  font-size: 14px;
  font-weight: 700;
  color: var(--amber-deep);
}
.legal__note {
  color: var(--mute);
  font-size: 15px;
}
.legal__note a {
  color: var(--amber-deep);
  font-weight: 600;
}
