/* Artemis landing — shared Olymp shell with a green product accent and
   Artemis-specific product mockups. */


/* ---------- Product tokens ---------- */
body.theme-artemis {
  --section-space: 56px;
  --frame-image: url("/assets/images/responsive/backgrounds/showcase-frame-3-684.webp");
  --frame-image: image-set(
    url("/assets/images/responsive/backgrounds/showcase-frame-3-480.avif") type("image/avif") 1x,
    url("/assets/images/responsive/backgrounds/showcase-frame-3-684.avif") type("image/avif") 2x,
    url("/assets/images/responsive/backgrounds/showcase-frame-3-480.webp") type("image/webp") 1x,
    url("/assets/images/responsive/backgrounds/showcase-frame-3-684.webp") type("image/webp") 2x
  );
  --frame-overlay: linear-gradient(180deg, rgba(18, 26, 22, .08), rgba(18, 26, 22, .28));

  /* Product UI palette stays local to the mockups. */
  --pm-bg: #f4efe7;
  --pm-surface: #ffffff;
  --pm-surface-2: #fbf7f1;
  --pm-surface-3: #f1ece3;
  --pm-border: #e8e1d4;
  --pm-border-soft: #efe9dd;
  --pm-primary: #025b4c;
  --pm-primary-soft: #e1f0ec;
  --pm-primary-line: #b9d7cf;
  --pm-accent: #1e5fb8;
  --pm-accent-soft: #e7effb;
  --pm-text: #1b2530;
  --pm-text-2: #46525f;
  --pm-muted: #626f7c;
  --pm-danger: #c0392b;
  --pm-warm: #f6d8ae;
  --pm-success: #16a07a;
}

/* Warm ground with the shared, subtle grain from the Olymp design system. */
body.theme-artemis { background-color: var(--bg); }

/* One vertical rhythm for every top-level page block. This intentionally
   overrides the generic page's regular, tight and framed section variants. */
body.theme-artemis .hero,
body.theme-artemis .strip,
body.theme-artemis .section {
  padding-block: var(--section-space);
}
body.theme-artemis main > section.hero:first-child {
  padding-top: calc(var(--first-section-pad) + var(--nav-offset));
}

body.theme-artemis .display, body.theme-artemis .h2 { letter-spacing: -.015em; }
body.theme-artemis .head .h2,
body.theme-artemis .secure h2 { margin-top: 0; }

.placeholder-page {
  padding-top: 88px;
  text-align: center;
}
.placeholder-page h1 {
  max-width: 16ch;
  margin: 14px auto 0;
}
.placeholder-page .lead {
  max-width: 560px;
  margin: 20px auto 0;
}
.placeholder-page .cta__btns {
  justify-content: center;
  margin-top: 28px;
}

@media (max-width: 640px) {
  body.theme-artemis { --section-space: 42px; }
  body.theme-artemis .hero__copy { min-width: 0; }
  body.theme-artemis .hero h1.display span { white-space: normal !important; }
}

/* Reuse the security page's topographic hero treatment. */
body.theme-artemis .hero {
  --first-section-pad: 72px;
  overflow: visible;
}
body.theme-artemis .hero::before {
  background:
    linear-gradient(rgba(255, 255, 255, .56), rgba(255, 255, 255, .56)),
    url("/assets/images/responsive/backgrounds/topographic-1280.webp") center / cover no-repeat;
  background:
    linear-gradient(rgba(255, 255, 255, .56), rgba(255, 255, 255, .56)),
    image-set(
      url("/assets/images/responsive/backgrounds/topographic-640.avif") type("image/avif") 1x,
      url("/assets/images/responsive/backgrounds/topographic-1280.avif") type("image/avif") 2x,
      url("/assets/images/responsive/backgrounds/topographic-640.webp") type("image/webp") 1x,
      url("/assets/images/responsive/backgrounds/topographic-1280.webp") type("image/webp") 2x
    ) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
  transform: scaleX(-1);
}
body.theme-artemis .hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 0;
  height: clamp(100px, 14vw, 180px);
  background: linear-gradient(to bottom, transparent, var(--bg) 92%);
  pointer-events: none;
}

/* Fresco picture-frame behind the hero mockup, matching the how-it-works
   step frames. Keep the copy and mock interface at an exact 50/50 split. */
body.theme-artemis .hero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; }
body.theme-artemis .hero__copy { min-width: 0; }
/* Cap the headline a touch on this hero so it lands as balanced lines in its
   column instead of wrapping tight; balance/pretty even out the ragged edges. */
body.theme-artemis .hero h1.display {
  font-size: clamp(38px, 4.2vw, 52px);
  font-weight: 550;
  line-height: 1.02;
  text-wrap: balance;
}
body.theme-artemis .hero-title__line { white-space: nowrap; }
body.theme-artemis .hero h1.display .display__accent {
  color: var(--accent);
}
body.theme-artemis .hero .lead { max-width: 480px; text-wrap: pretty; }
body.theme-artemis .hero__visual {
  position: relative;
  padding: 0;
}
body.theme-artemis .hero__visual::before { display: none; }
body.theme-artemis .hero__visual > .pm {
  --mock-lift: 0px;
  --mock-rotate-x: 0deg;
  --mock-rotate-y: 0deg;
  position: relative;
  z-index: 1;
  box-shadow: 0 38px 76px -24px rgba(20, 45, 40, .46), 0 12px 28px rgba(20, 45, 40, .13);
  transform: perspective(1100px) translateY(var(--mock-lift)) rotateX(var(--mock-rotate-x)) rotateY(var(--mock-rotate-y));
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease;
}
@media (hover: hover) and (pointer: fine) {
  body.theme-artemis .hero__visual:hover > .pm {
    --mock-lift: -4px;
    box-shadow: 0 44px 84px -24px rgba(20, 45, 40, .52), 0 16px 32px rgba(20, 45, 40, .16);
    transition-duration: .14s, .25s;
    transition-timing-function: ease-out, ease;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-artemis .hero__visual > .pm { transition: none; }
}

/* Hero mock only: tuck the client list into a slim icon rail (the product's
   collapsed state) and trim the chat's vertical rhythm, so the card reads
   wider-than-tall next to the copy. Scoped to the hero so the how-it-works
   mockups keep their full sidebar chrome. */
body.theme-artemis .hero__visual .pm-app { grid-template-columns: 58px 1fr; min-height: 0; }
body.theme-artemis .hero__visual .pm-brand,
body.theme-artemis .hero__visual .pm-chead { height: 60px; box-sizing: border-box; }
body.theme-artemis .hero__visual .pm-brand { justify-content: center; padding: 13px 0; }
body.theme-artemis .hero__visual .pm-brand b { display: none; }
body.theme-artemis .hero__visual .pm-sec-head { display: none; }
body.theme-artemis .hero__visual .pm-clients { padding: 12px 6px 0; }
body.theme-artemis .hero__visual .pm-crow { justify-content: center; padding: 7px 8px; }
body.theme-artemis .hero__visual .pm-crow .nm { display: none; }
body.theme-artemis .hero__visual .pm-foot a { justify-content: center; }
body.theme-artemis .hero__visual .pm-foot a span { display: none; }
body.theme-artemis .hero__visual .pm-chead { padding-top: 10px; padding-bottom: 10px; }
body.theme-artemis .hero__visual .pm-msgs { padding: 14px 20px 12px; }
body.theme-artemis .hero__visual .pm-input { margin-bottom: 12px; }
/* Primary and secondary size to their content so the green "Get started free"
   clearly leads rather than the two reading as equal-weight bars. */
body.theme-artemis .hero__cta { gap: 12px; }
body.theme-artemis .hero__cta .btn { flex: 0 0 auto; }
@media (max-width: 980px) {
  body.theme-artemis .hero__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  body.theme-artemis .hero__copy { display: contents; }
  body.theme-artemis .hero h1.display { order: 1; }
  body.theme-artemis .hero .lead { order: 2; }
  body.theme-artemis .hero__cta { order: 3; }
  body.theme-artemis .hero__visual {
    order: 4;
    margin-top: 32px;
  }
  body.theme-artemis .hero .lead {
    font-size: 17px;
  }
}
@media (min-width: 641px) and (max-width: 980px) {
  body.theme-artemis .hero h1.display,
  body.theme-artemis .hero .lead,
  body.theme-artemis .hero__visual,
  body.theme-artemis .hero__cta {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }
}
@media (max-width: 640px) {
  body.theme-artemis .hero__grid,
  body.theme-artemis .hero__copy,
  body.theme-artemis .hero__visual {
    min-width: 0;
    max-width: 100%;
  }
  body.theme-artemis .hero__copy,
  body.theme-artemis .hero__visual {
    width: 100%;
  }
  body.theme-artemis .hero-title__line {
    white-space: normal;
  }
}
@media (min-width: 540px) and (max-width: 980px) {
  body.theme-artemis .hero .lead-line { display: block; white-space: nowrap; }
}
/* how-it-works subtle wash */
body.theme-artemis .step__n { background: var(--pm-primary-soft); color: var(--pm-primary); }

/* Give the four proof-point cards a little more presence and keep their
   contents vertically balanced despite the different copy lengths. */
body.theme-artemis .stats-section {
  padding-block: 0 clamp(32px, 4vw, 48px);
}
body.theme-artemis .stat {
  min-height: 180px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 640px) {
  body.theme-artemis .stats-section { padding-block: 36px 44px; }
  body.theme-artemis .stat { min-height: 160px; padding: 28px 24px; }
}
@media (max-width: 480px) {
  body.theme-artemis .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  body.theme-artemis .stat {
    min-height: 150px;
    padding: 16px 14px;
  }
  body.theme-artemis .stat .n { font-size: 36px; }
  body.theme-artemis .stat .k {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.35;
  }
}

/* Frame around the mock/"feature bubbles" inside the dark feature--wide
   panel, giving the bubbles breathing room from the panel edge instead
   of sitting flush against it. */
.feature--wide .mock-frame {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
}

/* ---------- Partner / trust marquee ----------
   Mirrors the homepage strip: centered label above an auto-scrolling
   track. The track holds two identical name sets and slides left by
   exactly 50%, so the loop is seamless. Edge mask fades both sides;
   pauses on hover and under reduced-motion. (home.css isn't loaded on
   this page, so the marquee rules are re-declared here.) */
.logos-marquee {
  position: relative; overflow: hidden; margin-top: 34px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
/* Track holds 4 identical groups; each group carries its own trailing gap
   (padding-right) so the groups tile with uniform spacing. Translating by
   exactly one group (-25% of four) makes the loop perfectly seamless, and the
   extra groups guarantee the track overflows even on very wide screens, so
   logos never stop arriving from the right. */
.logos-track {
  display: flex; align-items: center; width: max-content;
  animation: logos-scroll 40s linear infinite;
}
.logos-group { display: flex; align-items: center; gap: 72px; padding-right: 72px; flex: none; }
.logos-group a { display: flex; align-items: center; flex: none; border-radius: 6px; }
.logos-group a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.logos-track img {
  height: 48px; width: auto; max-width: 210px; object-fit: contain; flex: none;
  opacity: .62; filter: grayscale(1); transition: opacity .2s, filter .2s;
}
.logos-group a:hover img,
.logos-group a:focus-visible img { opacity: 1; filter: grayscale(0); }
.logos-track .logo-lg { height: 64px; }
@keyframes logos-scroll { from { transform: translateX(0); } to { transform: translateX(-25%); } }
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; } }
@media (prefers-reduced-motion: reduce) {
  .logos-marquee {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .logos-marquee::-webkit-scrollbar { display: none; }
  .logos-track { animation: none; }
  .logos-group[aria-hidden="true"] { display: none; }
  .logos-group a {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
}

/* ============================================================
   PRODUCT MOCKUP LIBRARY (.pm-*) — faithful Artemis app replica
   ============================================================ */
.pm {
  font-family: var(--sans);
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 34px 70px -26px rgba(20, 45, 40, .32), 0 6px 16px rgba(20, 45, 40, .07);
  color: var(--pm-text);
  line-height: 1.5;
  user-select: none;
}
.pm-top {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; background: var(--pm-surface-2); border-bottom: 1px solid var(--pm-border-soft);
}
.pm-top i { width: 11px; height: 11px; border-radius: 50%; background: #ddd3c4; display: inline-block; }
.pm-top i:nth-child(1) { background: #e6a29a; } .pm-top i:nth-child(2) { background: #eccf9a; } .pm-top i:nth-child(3) { background: #a9d2bf; }
.pm-top .pm-url { margin-left: 10px; font-size: 12px; color: var(--pm-muted); display: inline-flex; align-items: center; gap: 7px; }
.pm-top .pm-url svg { width: 12px; height: 12px; }

/* Live dictation: spoken notes on the left, Artemis structure on the right. */
.pm-dictation {
  height: 460px;
  background: #fff;
}
.dictation-body {
  height: calc(100% - 44px);
  min-height: 0;
  display: grid;
  grid-template-rows: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: #fff;
}
.dictation-recording {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px dashed #d7ddda;
  border-radius: 12px;
  background: #fff;
}
.dictation-mic {
  width: 54px;
  height: 54px;
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: #fff0ee;
  color: #cf554d;
}
.dictation-mic svg { width: 28px; height: 28px; fill: currentColor; }
.dictation-wave {
  height: 46px;
  min-width: 60px;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 3px;
  color: #cf554d;
}
.dictation-wave i {
  width: 3px;
  height: var(--h);
  min-height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: .78;
  animation: dictation-wave var(--speed, 1.3s) ease-in-out infinite alternate;
  animation-delay: var(--d);
  transform-origin: center;
}
.dictation-wave i:nth-child(5n + 1) { --speed: 1.05s; }
.dictation-wave i:nth-child(5n + 2) { --speed: 1.65s; }
.dictation-wave i:nth-child(5n + 3) { --speed: 1.3s; }
.dictation-wave i:nth-child(5n + 4) { --speed: 1.9s; }
.dictation-wave i:nth-child(5n) { --speed: 1.45s; }
@keyframes dictation-wave {
  0% { transform: scaleY(.24); opacity: .36; }
  38% { transform: scaleY(.82); opacity: .82; }
  67% { transform: scaleY(.46); opacity: .56; }
  100% { transform: scaleY(1); opacity: .92; }
}
.dictation-recording-meta {
  min-width: 66px;
  display: grid;
  flex: none;
  gap: 2px;
}
.dictation-recording-meta b {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #cf554d;
  font-size: 9px;
}
.dictation-recording-meta b::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.dictation-recording-meta span {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.dictation-controls { display: flex; flex: none; gap: 6px; }
.dictation-controls > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pm-border);
  border-radius: 9px;
  color: var(--pm-text-2);
  background: #fff;
}
.dictation-controls > .is-stop {
  border-color: #efd3d0;
  color: #cf554d;
  background: #fff0ee;
}
.dictation-controls svg { width: 14px; height: 14px; }
.dictation-columns {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--pm-border);
  border-radius: 12px;
}
.dictation-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.dictation-column + .dictation-column { border-left: 1px solid var(--pm-border); }
.dictation-column > header {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 13px;
  border-bottom: 1px solid var(--pm-border-soft);
  background: var(--pm-surface-2);
}
.dictation-column > header b { font-size: 12px; }
.dictation-column > header > span { color: var(--pm-muted); font-size: 11px; }
.dictation-ai-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--pm-primary) !important;
  font-size: 9px !important;
  font-weight: 700;
}
.dictation-ai-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(2, 91, 76, .1);
  content: "";
}
.dictation-transcript,
.dictation-notes {
  height: 100%;
  min-height: 238px;
  overflow: hidden;
  padding: 15px;
  color: var(--pm-text-2);
  font-size: 12px;
  line-height: 1.58;
}
.dictation-notes {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  padding-top: 10px;
}
.dictation-transcript::after {
  color: var(--pm-primary);
  content: "▍";
  animation: dictation-caret .8s steps(1) infinite;
}
@keyframes dictation-caret { 50% { opacity: 0; } }
.dictation-word {
  animation: dictation-word-in .28s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes dictation-word-in {
  from { opacity: 0; filter: blur(2px); }
  to { opacity: 1; filter: blur(0); }
}
.dictation-column--artemis {
  background:
    radial-gradient(circle at 82% 18%, rgba(102, 174, 158, .2), transparent 38%),
    linear-gradient(135deg, #f7fbf9 0%, #e4f1ed 48%, #f4faf7 100%);
  background-size: 140% 140%;
  animation: dictation-glow 7s ease-in-out infinite alternate;
}
@keyframes dictation-glow {
  from { background-position: 0% 40%; }
  to { background-position: 100% 60%; }
}
.dictation-column--artemis > header { background: rgba(247, 251, 249, .76); }
.dictation-waiting {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--pm-primary);
  font-size: 12px;
}
.dictation-waiting::before {
  content: "✦";
  animation: dictation-sparkle 1.5s ease-in-out infinite;
}
@keyframes dictation-sparkle { 50% { opacity: .35; transform: scale(.82); } }
.dictation-notes.has-notes .dictation-waiting { display: none; }
.dictation-note {
  display: none;
  margin-bottom: 10px;
}
.dictation-note.is-visible {
  display: grid;
  gap: 3px;
  animation: dictation-note-in .5s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes dictation-note-in {
  from { opacity: 0; transform: translateY(7px); filter: blur(2px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.dictation-note b { color: var(--pm-primary); font-size: 11px; }
.dictation-note span {
  position: relative;
  padding-left: 10px;
  color: var(--pm-text-2);
  font-size: 10.5px;
  line-height: 1.4;
}
.dictation-note span::before {
  position: absolute;
  top: .64em;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--pm-primary);
  content: "";
}
@media (max-width: 640px) {
  .pm-dictation { height: 570px; }
  .dictation-body {
    min-height: 0;
    grid-template-rows: 72px minmax(0, 1fr);
    padding: 9px;
    gap: 9px;
  }
  .dictation-recording {
    min-width: 0;
    padding: 8px 9px;
    gap: 8px;
  }
  .dictation-mic { width: 42px; height: 42px; }
  .dictation-mic svg { width: 22px; height: 22px; }
  .dictation-wave { min-width: 36px; gap: 2px; }
  .dictation-wave i { width: 2px; }
  .dictation-recording-meta { min-width: 52px; }
  .dictation-recording-meta b { font-size: 8px; }
  .dictation-recording-meta span { font-size: 12px; }
  .dictation-controls > span { width: 29px; height: 29px; }
  .dictation-columns {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, .9fr) minmax(0, 1.1fr);
  }
  .dictation-column + .dictation-column {
    border-top: 1px solid var(--pm-border);
    border-left: 0;
  }
  .dictation-column > header { min-height: 36px; padding-inline: 10px; }
  .dictation-column > header b { font-size: 11px; }
  .dictation-ai-status { display: none; }
  .dictation-transcript,
  .dictation-notes {
    min-height: 0;
    overflow-y: auto;
    padding: 10px 11px;
    font-size: 11px;
    line-height: 1.5;
  }
  .dictation-waiting { font-size: 11px; }
  .dictation-note { margin-bottom: 7px; }
  .dictation-note b { font-size: 10.5px; }
  .dictation-note span { font-size: 10px; line-height: 1.35; }
}
@media (max-width: 380px) {
  .pm-dictation { height: 590px; }
  .dictation-body { grid-template-rows: 66px minmax(0, 1fr); padding: 7px; gap: 7px; }
  .dictation-recording { padding: 7px; gap: 6px; }
  .dictation-mic { width: 38px; height: 38px; }
  .dictation-mic svg { width: 20px; height: 20px; }
  .dictation-recording-meta { min-width: 40px; }
  .dictation-recording-meta b { display: none; }
  .dictation-recording-meta span { font-size: 11px; }
  .dictation-controls > span:first-child { display: none; }
  .dictation-controls > span { width: 28px; height: 28px; }
  .dictation-column > header b { font-size: 10px; }
  .dictation-columns { grid-template-rows: minmax(0, .8fr) minmax(0, 1.2fr); }
  .dictation-transcript,
  .dictation-notes { font-size: 10.5px; }
  .dictation-note b { font-size: 11px; }
  .dictation-note span { font-size: 10.5px; }
}

/* Calendar + billing desktop stack used in walkthrough step three. */
.pm-window-stack {
  position: relative;
  height: 470px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.stack-window {
  position: absolute;
  top: 0;
  left: 0;
  width: 95%;
  height: 395px;
  overflow: hidden;
  border: 1px solid var(--pm-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 54px -26px rgba(19, 48, 40, .42), 0 7px 18px rgba(19, 48, 40, .08);
  cursor: pointer;
  transform: scale(.97);
  transform-origin: top left;
  will-change: top, left, transform;
  transition:
    top .85s cubic-bezier(.4, 0, .2, 1),
    left .85s cubic-bezier(.4, 0, .2, 1),
    transform .85s cubic-bezier(.4, 0, .2, 1),
    box-shadow .85s ease;
}
.stack-window:not(.is-front) { z-index: 1; }
.stack-window.is-front {
  top: 70px;
  left: 5%;
  z-index: 3;
  transform: scale(1);
  box-shadow: 0 32px 68px -24px rgba(19, 48, 40, .5), 0 12px 25px rgba(19, 48, 40, .12);
}
.stack-window:focus-visible {
  outline: 3px solid rgba(2, 91, 76, .35);
  outline-offset: 3px;
}
.stack-titlebar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border-bottom: 1px solid var(--pm-border-soft);
  background: #fafaf8;
}
.stack-titlebar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ed6a5f;
}
.stack-titlebar i:nth-child(2) { background: #f4bf4f; }
.stack-titlebar i:nth-child(3) { background: #61c554; }
.stack-titlebar span {
  margin-left: 7px;
  color: var(--pm-muted);
  font-size: 9px;
}
.stack-app {
  height: calc(100% - 34px);
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
}
.stack-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px 8px;
  border-right: 1px solid var(--pm-border-soft);
  background: #faf9f6;
}
.stack-rail img,
.stack-rail > span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  color: #51478f;
  background: #eeedfe;
  font-size: 7px;
  font-weight: 700;
}
.stack-rail svg {
  width: 23px;
  height: 23px;
  margin-top: auto;
  padding: 5px;
  border-radius: 7px;
  color: var(--pm-primary);
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 45, 40, .08);
}
.stack-screen { min-width: 0; overflow: hidden; background: #fff; }
.stack-screen-head {
  height: 45px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  border-bottom: 1px solid var(--pm-border-soft);
}
.stack-screen-head > b { font-size: 18px; }
.stack-green-button {
  margin-left: auto;
  padding: 6px 9px;
  border-radius: 7px;
  color: #fff;
  background: var(--pm-primary);
  font-size: 7px;
  font-weight: 700;
}
.stack-calendar-tools {
  height: 39px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--pm-muted);
  font-size: 7.5px;
}
.stack-calendar-tools > b { color: var(--pm-text-2); font-size: 8.5px; }
.stack-today {
  padding: 5px 8px;
  border-radius: 6px;
  color: #fff;
  background: var(--pm-primary);
  font-weight: 700;
}
.stack-select {
  padding: 5px 7px;
  border: 1px solid var(--pm-border);
  border-radius: 6px;
}
.stack-calendar-grid {
  height: calc(100% - 84px);
  margin: 0 10px 10px;
  overflow: hidden;
  border: 1px solid var(--pm-border-soft);
  border-radius: 7px;
}
.stack-days {
  height: 25px;
  display: grid;
  grid-template-columns: 32px repeat(5, 1fr);
  border-bottom: 1px solid var(--pm-border-soft);
  background: #fbfaf7;
}
.stack-days > * {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--pm-border-soft);
  color: var(--pm-muted);
  font-size: 8px;
}
.stack-days .today {
  color: var(--pm-primary);
  box-shadow: inset 0 -2px var(--pm-primary);
}
.stack-grid-body {
  position: relative;
  height: calc(100% - 25px);
  background: repeating-linear-gradient(180deg, transparent 0 29px, var(--pm-border-soft) 29px 30px);
}
.stack-times {
  position: absolute;
  inset: 4px auto 0 0;
  width: 32px;
  height: 100%;
  padding-right: 3px;
  border-right: 1px solid var(--pm-border-soft);
  color: #a1a8a5;
  font-size: 6.5px;
  line-height: 30px;
  text-align: right;
  white-space: normal;
}
.stack-grid-canvas {
  position: absolute;
  inset: 0 0 0 32px;
  overflow: hidden;
  background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), var(--pm-border-soft) calc(20% - 1px) 20%);
}
.stack-calendar-event {
  position: absolute;
  width: calc(20% - 6px);
  padding: 5px;
  overflow: hidden;
  border: 1px solid #efd5af;
  border-left: 2px solid #d98b2b;
  border-radius: 6px;
  background: #fff5e8;
  box-shadow: 0 3px 8px rgba(20, 45, 40, .06);
}
.stack-calendar-event small,
.stack-calendar-event b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack-calendar-event small { color: var(--pm-muted); font-size: 6px; }
.stack-calendar-event b { margin-top: 2px; font-size: 7px; }
.stack-calendar-event--one { top: 139px; left: 3px; height: 46px; }
.stack-calendar-event--two { top: 130px; left: calc(20% + 3px); height: 46px; }
.stack-calendar-event--three {
  top: 38px;
  left: calc(80% + 3px);
  height: 52px;
  border-color: #c7dce9;
  border-left-color: #468db9;
  background: #edf5fb;
}
.stack-now-line {
  position: absolute;
  top: 147px;
  left: 60%;
  width: 20%;
  height: 1px;
  background: #d45d54;
}
.stack-billing {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
}
.stack-billing-heading b { display: block; font-size: 18px; }
.stack-billing-heading span { display: block; margin-top: 3px; color: var(--pm-muted); font-size: 7px; }
.stack-billing-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 11px;
  overflow: hidden;
  border: 1px solid var(--pm-border);
  border-radius: 9px;
}
.stack-billing-stats > span {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 9px 4px;
  border-right: 1px solid var(--pm-border-soft);
}
.stack-billing-stats > span:last-child { border: 0; background: #eef6f2; }
.stack-billing-stats small { color: var(--pm-muted); font-size: 6.5px; }
.stack-billing-stats b { font-size: 9.5px; white-space: nowrap; }
.stack-invoices {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: 11px;
  overflow: hidden;
  border: 1px solid var(--pm-border);
  border-radius: 9px;
}
.stack-invoices-head {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--pm-border-soft);
}
.stack-invoices-head b { font-size: 13px; }
.stack-invoices-head small { color: var(--pm-muted); font-size: 8px; }
.stack-invoice-filters {
  display: flex;
  gap: 12px;
  padding: 8px 11px;
  color: var(--pm-muted);
  font-size: 8px;
}
.stack-invoice-filters b {
  padding: 4px 7px;
  border-radius: 5px;
  color: var(--pm-primary);
  background: var(--pm-primary-soft);
}
.stack-invoice-row {
  flex: 1;
  display: grid;
  grid-template-columns: 12px minmax(110px, 1.4fr) minmax(42px, .5fr) minmax(48px, .5fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 57px;
  padding: 8px 10px;
  border-top: 1px solid var(--pm-border-soft);
}
.stack-invoice-row > span { min-width: 0; }
.stack-invoice-row b,
.stack-invoice-row small,
.stack-invoice-row i { display: block; }
.stack-invoice-row b { font-size: 9px; }
.stack-invoice-row small { margin-top: 3px; overflow: hidden; color: var(--pm-muted); font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.stack-invoice-row i {
  width: fit-content;
  margin-top: 3px;
  padding: 3px 5px;
  border-radius: 4px;
  color: #8b6519;
  background: #fff8e6;
  font-size: 7px;
  font-style: normal;
}
.stack-check { width: 9px; height: 9px; border: 1px solid #aeb7b3; border-radius: 2px; }
.stack-invoice-row em {
  padding: 6px 7px;
  border-radius: 5px;
  color: #fff;
  background: var(--pm-primary);
  font-size: 7.5px;
  font-style: normal;
  white-space: nowrap;
}
@media (hover: hover) {
  .stack-window:not(.is-front):hover { transform: scale(.98); }
}
@media (max-width: 640px) {
  .pm-window-stack { height: 430px; }
  .stack-window { width: 97%; height: 330px; }
  .stack-window.is-front { top: 70px; left: 3%; }
  .stack-titlebar { height: 31px; }
  .stack-app { height: calc(100% - 31px); grid-template-columns: 29px minmax(0, 1fr); }
  .stack-rail { gap: 6px; padding-inline: 3px; }
  .stack-rail img,
  .stack-rail > span,
  .stack-rail svg { width: 20px; height: 20px; }
  .stack-screen-head { height: 38px; padding-inline: 9px; }
  .stack-screen-head > b { font-size: 14px; }
  .stack-green-button { display: none; }
  .stack-calendar-tools { height: 34px; padding-inline: 7px; gap: 5px; }
  .stack-select { display: none; }
  .stack-calendar-grid { height: calc(100% - 72px); margin-inline: 6px; }
  .stack-billing { padding: 10px; }
  .stack-billing-heading b { font-size: 14px; }
  .stack-billing-stats { margin-top: 8px; }
  .stack-billing-stats > span { padding-block: 6px; }
  .stack-billing-stats b { font-size: 8px; }
  .stack-invoices { margin-top: 8px; }
  .stack-invoice-row {
    grid-template-columns: 8px minmax(82px, 1fr) 37px 43px;
    min-height: 52px;
    padding: 6px;
  }
  .stack-invoice-row em { display: none; }
}

/* --- app shell: sidebar + main --- */
.pm-app { display: grid; grid-template-columns: 210px 1fr; min-height: 430px; }
.pm-side {
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.2)), var(--pm-surface-2);
  border-right: 1px solid var(--pm-border); display: flex; flex-direction: column; min-height: 0;
}
.pm-brand { display: flex; align-items: center; gap: 9px; padding: 13px 14px; border-bottom: 1px solid var(--pm-border-soft); }
.pm-brand .m { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #025b4c, #014438); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); overflow: hidden; }
.pm-brand .m img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.pm-brand b { font-family: var(--serif); font-weight: 500; font-size: 17px; color: var(--pm-text); letter-spacing: -.01em; }
.pm-sec-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 7px; }
.pm-sec-head span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pm-muted); }
.pm-sec-head .a { display: flex; gap: 4px; }
.pm-sec-head .a b { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: var(--pm-muted); }
.pm-sec-head .a b svg { width: 13px; height: 13px; }
.pm-clients { padding: 0 8px; display: flex; flex-direction: column; gap: 2px; }
.pm-crow { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 10px; cursor: default; }
.pm-crow.on { background: #fff; box-shadow: var(--sh-1, 0 1px 2px rgba(20,30,40,.05)); }
.pm-crow .av { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; }
.pm-crow .nm { font-size: 13px; font-weight: 500; color: var(--pm-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-crow.on .nm { color: var(--pm-primary); font-weight: 600; }
.pm-foot { margin-top: auto; padding: 10px 8px; border-top: 1px solid var(--pm-border-soft); display: flex; flex-direction: column; gap: 2px; }
.pm-foot a { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 9px; font-size: 12.5px; color: var(--pm-text-2); font-weight: 500; }
.pm-foot a.on { background: #fff; color: var(--pm-primary); box-shadow: var(--sh-1, 0 1px 2px rgba(20,30,40,.05)); }
.pm-foot a svg { width: 15px; height: 15px; color: var(--pm-muted); }
.pm-foot a.on svg { color: var(--pm-primary); }

/* --- chat main --- */
.pm-main { display: flex; flex-direction: column; min-width: 0; background: var(--pm-surface); position: relative; }
.pm-chead { display: flex; align-items: center; gap: 11px; padding: 12px 18px; border-bottom: 1px solid var(--pm-border-soft); }
.pm-chead .av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #fff; flex: none; }
.pm-chead .nm { font-weight: 600; font-size: 14px; color: var(--pm-text); }
.pm-chead .sub { font-size: 11.5px; color: var(--pm-muted); display: flex; align-items: center; gap: 5px; }
.pm-chead .sub svg { width: 12px; height: 12px; }
.pm-chead .sp { margin-left: auto; display: flex; gap: 6px; color: var(--pm-muted); }
.pm-chead .sp svg { width: 17px; height: 17px; }
.pm-msgs { flex: 1; padding: 20px 22px 16px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.pm-day { align-self: center; font-size: 10.5px; color: var(--pm-muted); background: var(--pm-surface-2); border: 1px solid var(--pm-border-soft); border-radius: 999px; padding: 4px 12px; letter-spacing: .04em; margin-bottom: 4px; }
.pm-msg { max-width: 82%; display: flex; flex-direction: column; }
.pm-msg.bot { align-self: flex-start; align-items: flex-start; }
.pm-msg.user { align-self: flex-end; align-items: flex-end; }
.pm-bubble { padding: 9px 13px 10px; border-radius: 15px; font-size: 13px; line-height: 1.5; }
.pm-msg.bot .pm-bubble { background: var(--pm-surface-2); border: 1px solid var(--pm-border-soft); border-bottom-left-radius: 4px; color: var(--pm-text); }
.pm-msg.user .pm-bubble { background: var(--pm-primary); color: #fff; border-bottom-right-radius: 4px; box-shadow: 0 1px 2px rgba(2,91,76,.18); }
.pm-meta { font-size: 9.5px; color: var(--pm-muted); margin-top: 3px; letter-spacing: .03em; }
.pm-msg.user .pm-meta { color: var(--pm-muted); }

/* voice bubble with waveform */
.pm-voice { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.pm-voice .play { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; flex: none; }
.pm-voice .play svg { width: 12px; height: 12px; color: #fff; }
.pm-voice .wave { flex: 1; height: 18px; display: flex; align-items: center; gap: 2px; }
.pm-voice .wave span { flex: 1; background: currentColor; border-radius: 1px; opacity: .5; }
.pm-voice .dur { font-size: 11px; font-variant-numeric: tabular-nums; opacity: .9; }

/* file card produced by assistant */
.pm-file { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 11px; background: #fff; border: 1px solid var(--pm-border); border-radius: 11px; }
.pm-file .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--pm-primary-soft); color: var(--pm-primary); display: grid; place-items: center; flex: none; }
.pm-file .ic svg { width: 15px; height: 15px; }
.pm-file > span:nth-child(2) { min-width: 0; }
.pm-file .fn { font-size: 12.5px; font-weight: 600; color: var(--pm-text); }
.pm-file .fn,
.pm-file .fs { overflow-wrap: anywhere; }
.pm-file .fs { font-size: 10.5px; color: var(--pm-muted); }
.pm-file .dl { margin-left: auto; color: var(--pm-accent); }
.pm-file .dl svg { width: 14px; height: 14px; }

/* typing dots */
.pm-typing { display: inline-flex; gap: 4px; padding: 11px 14px; }
.pm-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--pm-muted); opacity: .5; animation: pm-blink 1.2s infinite; }
.pm-typing span:nth-child(2) { animation-delay: .18s; } .pm-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes pm-blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: .9; transform: translateY(-2px); } }

/* input bar */
.pm-input { margin: 0 18px 16px; background: var(--pm-surface); border: 1px solid var(--pm-border); border-radius: 16px; box-shadow: 0 4px 14px rgba(20,30,40,.06); padding: 8px 8px 8px 15px; display: flex; align-items: center; gap: 8px; }
.pm-input .ph { flex: 1; font-size: 12.5px; color: var(--pm-muted); }
.pm-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 999px; font-size: 11.5px; font-weight: 500; color: var(--pm-text-2); border: 1px solid var(--pm-border); background: var(--pm-surface); }
.pm-pill svg { width: 13px; height: 13px; }
.pm-pill.rec svg { color: var(--pm-danger); }
.pm-send { width: 32px; height: 32px; border-radius: 50%; background: var(--pm-accent); color: #fff; display: grid; place-items: center; flex: none; }
.pm-send svg { width: 14px; height: 14px; }

/* --- client workspace mockup --- */
.pm-client-workspace {
  height: 480px;
  background: #fff;
}
.cw-app {
  height: calc(100% - 44px);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50%;
  overflow: hidden;
  background: #fff;
}
.cw-chat {
  min-width: 0;
  min-height: 0;
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px 24px 58px;
}
.cw-search {
  width: 23px;
  height: 23px;
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pm-border);
  border-radius: 50%;
  color: #76817d;
}
.cw-search svg { width: 10px; height: 10px; }
.cw-empty { width: min(310px, 92%); }
.cw-empty b { display: block; color: #202a27; font-size: 13px; font-weight: 500; line-height: 1.4; }
.cw-empty b span { color: var(--pm-primary); border-bottom: 1px solid rgba(8, 99, 85, .42); }
.cw-composer {
  width: calc(100% - 26px);
  min-height: 31px;
  position: absolute;
  right: 13px;
  bottom: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 5px 4px 10px;
  border: 1px solid #202825;
  border-radius: 13px;
  color: #202825;
  background: #fff;
  box-shadow: 0 5px 15px rgba(34, 57, 51, .06);
  font-size: 6.8px;
}
.cw-composer > span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-composer em {
  height: 21px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 6px;
  border: 1px solid #202825;
  border-radius: 999px;
  color: #202825;
  font-size: 6.5px;
  font-style: normal;
}
.cw-composer i {
  width: 21px;
  height: 21px;
  display: grid;
  flex: none;
  place-items: center;
  border: 1px solid #202825;
  border-radius: 50%;
  color: #202825;
  font-style: normal;
}
.cw-composer svg { width: 9px; height: 9px; }
.cw-composer .cw-send { border-color: #202825; color: #202825; background: #fff; }
.cw-card {
  min-width: 0;
  min-height: 0;
  position: relative;
  display: grid;
  grid-template-rows: 38px minmax(0, 1fr);
  border-left: 1px solid var(--pm-border);
  background: #fff;
}
.cw-card-handle {
  width: 21px;
  height: 25px;
  position: absolute;
  top: calc(50% - 12px);
  left: -11px;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid #dce3df;
  border-radius: 50%;
  color: var(--pm-primary);
  background: #fff;
  box-shadow: 0 3px 9px rgba(28, 58, 50, .12);
}
.cw-card-handle svg { width: 10px; height: 10px; }
.cw-card-head {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-bottom: 1px solid var(--pm-border);
}
.cw-card-head img { width: 28px; height: 28px; flex: none; object-fit: cover; border-radius: 7px; }
.cw-card-head b { min-width: 0; overflow: hidden; color: var(--pm-text); font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.cw-card-head span { margin-left: auto; color: var(--pm-muted); font-size: 9px; letter-spacing: 1px; }
.cw-card-body { min-height: 0; overflow: hidden; }
.cw-quick-links { display: grid; gap: 5px; padding: 7px 9px 3px; }
.cw-quick-link {
  min-height: 33px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 11px;
  align-items: center;
  gap: 7px;
  padding: 4px 7px;
  border: 1px solid var(--pm-border);
  border-radius: 7px;
}
.cw-quick-link i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: var(--pm-primary);
  background: var(--pm-primary-soft);
  font-style: normal;
}
.cw-quick-link i svg { width: 12px; height: 12px; }
.cw-quick-link > b { overflow: hidden; font-size: 9.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.cw-quick-link > svg { width: 10px; height: 10px; color: var(--pm-muted); }
.cw-overview { padding: 10px 9px 14px; }
.cw-overview h4 {
  margin: 0 0 5px;
  color: var(--pm-muted);
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cw-overview dl { margin: 0; padding: 0; border-top: 1px solid var(--pm-border); }
.cw-overview dl > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  min-height: 27px;
  align-items: start;
  padding: 6px 4px;
  border-bottom: 1px solid var(--pm-border);
}
.cw-overview dt,
.cw-overview dd { margin: 0; }
.cw-overview dt {
  color: var(--pm-muted);
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: .035em;
  line-height: 1.35;
  text-transform: uppercase;
}
.cw-overview dd { color: var(--pm-text-2); font-size: 9.2px; line-height: 1.45; overflow-wrap: anywhere; }
.cw-overview .is-diagnosis { min-height: 70px; }
.cw-overview .is-diagnosis dd { font-size: 8.5px; }

/* --- session protocol (Verlauf) mockup --- */
.pm-verlauf { padding: 20px 22px; min-height: 430px; display: flex; flex-direction: column; }
.pm-vhead { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pm-vhead .av { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px; flex: none; }
.pm-vhead .av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.pm-vhead h4 { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--pm-text); margin: 0; }
.pm-vhead .s { font-size: 11.5px; color: var(--pm-muted); }
.pm-vhead .r { margin-left: auto; display: flex; gap: 8px; }
.pm-btn.voice { border: 1px solid #eeb7b0; background: #fff; color: #b23a2c; }
.pm-btn.voice svg { width: 14px; height: 14px; }
.pm-vtable { border: 1px solid var(--pm-border); border-radius: 12px; overflow: hidden; background: #fff; }
.pm-vtr { display: grid; grid-template-columns: 74px 1fr 1.3fr; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--pm-border-soft); font-size: 12px; }
.pm-vtr:last-child { border-bottom: 0; }
.pm-vtr.hd { background: var(--pm-surface-2); font-weight: 600; color: var(--pm-muted); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; }
.pm-vtr .dt { color: var(--pm-text-2); font-variant-numeric: tabular-nums; }
.pm-vtr .an { color: var(--pm-text); font-weight: 500; }
.pm-vtr .nt { color: var(--pm-text-2); }
.pm-vtr.draft { background: linear-gradient(90deg, #eef7f3, #fff); position: relative; }
.pm-vbadge { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 9px; border-radius: 999px; background: var(--pm-primary-soft); color: var(--pm-primary); font-size: 10px; font-weight: 600; }
.pm-vbadge svg { width: 10px; height: 10px; }

/* recording chip floating on a mockup */
.pm-recbadge { position: absolute; top: 14px; right: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: #fbe9e7; border: 1px solid #eeb7b0; color: #b23a2c; font-size: 11.5px; font-weight: 600; box-shadow: 0 6px 16px rgba(178,58,44,.18); }
.pm-recbadge .rdot { width: 8px; height: 8px; border-radius: 50%; background: #c0392b; animation: pm-rec 1.3s infinite; }
@keyframes pm-rec { 0%,100% { box-shadow: 0 0 0 0 rgba(192,57,43,.5); } 50% { box-shadow: 0 0 0 6px rgba(192,57,43,0); } }

/* avatar color helpers */
.av-teal { background: linear-gradient(135deg, #025b4c, #0a7d68); }
.av-plum { background: linear-gradient(135deg, #7a4f86, #a06fae); }
.av-clay { background: linear-gradient(135deg, #b5713f, #d69a6a); }
.av-blue { background: linear-gradient(135deg, #1e5fb8, #4f8ad6); }
.pm .av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

/* ---------- How-it-works showcase layout ---------- */
/* Break out of the wrap's 24px side padding so these step frames span the full
   wrap width, matching the wider .section--framed / .feature-carousel-frame
   panels (which are .wrap elements themselves). */
.showcase { display: grid; gap: 32px; margin: 48px -24px 0; grid-auto-rows: 1fr; }
/* Keep all three walkthrough steps equally tall without an outer card. */
.show-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: center;
  padding: clamp(22px, 2vw, 30px);
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.show-row.flip { grid-template-columns: 2fr 1fr; }
.show-row.flip .show-copy { order: 2; }

/* The fresco extends into the outer panel's padding on the non-copy sides.
   This reduces the gap to the outer border without resizing the panel, moving
   the picture toward the copy, or changing the mockup itself. */
.show-visual {
  --picture-expand: clamp(10px, 1.2vw, 18px);
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 1.8vw, 28px);
  border-radius: 24px;
}
.showcase > .show-row:nth-child(2) .show-visual {
  padding: clamp(8px, 1vw, 14px);
}
.show-visual::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--picture-expand)) calc(-1 * var(--picture-expand)) calc(-1 * var(--picture-expand)) 0;
  z-index: 0;
  border-radius: 24px;
  background-color: #2b2622;
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 66px -34px rgba(20, 45, 40, .5), inset 0 1px 0 rgba(255, 255, 255, .22);
  pointer-events: none;
}
.show-row.flip .show-visual::before {
  inset: calc(-1 * var(--picture-expand)) 0 calc(-1 * var(--picture-expand)) calc(-1 * var(--picture-expand));
}
.show-visual > .pm { position: relative; z-index: 1; width: 100%; }
.show-row:nth-child(1).is-bg-loaded .show-visual::before {
  background-image: linear-gradient(180deg, rgba(18, 26, 22, .12), rgba(18, 26, 22, .34)), url("/assets/images/responsive/backgrounds/artemis-nymphs-740.webp");
  background-image: linear-gradient(180deg, rgba(18, 26, 22, .12), rgba(18, 26, 22, .34)), image-set(
    url("/assets/images/responsive/backgrounds/artemis-nymphs-480.avif") type("image/avif") 1x,
    url("/assets/images/responsive/backgrounds/artemis-nymphs-740.avif") type("image/avif") 2x,
    url("/assets/images/responsive/backgrounds/artemis-nymphs-480.webp") type("image/webp") 1x,
    url("/assets/images/responsive/backgrounds/artemis-nymphs-740.webp") type("image/webp") 2x
  );
}
.show-row:nth-child(2).is-bg-loaded .show-visual::before {
  background-image: linear-gradient(180deg, rgba(18, 26, 22, .12), rgba(18, 26, 22, .34)), url("/assets/images/responsive/backgrounds/artemis-apelles-1024.webp");
  background-image: linear-gradient(180deg, rgba(18, 26, 22, .12), rgba(18, 26, 22, .34)), image-set(
    url("/assets/images/responsive/backgrounds/artemis-apelles-640.avif") type("image/avif") 1x,
    url("/assets/images/responsive/backgrounds/artemis-apelles-1024.avif") type("image/avif") 2x,
    url("/assets/images/responsive/backgrounds/artemis-apelles-640.webp") type("image/webp") 1x,
    url("/assets/images/responsive/backgrounds/artemis-apelles-1024.webp") type("image/webp") 2x
  );
}
.show-row:nth-child(3).is-bg-loaded .show-visual::before {
  background-image: linear-gradient(145deg, rgba(2, 91, 76, .16), rgba(18, 26, 22, .36)), url("/assets/images/responsive/backgrounds/artemis-rescue-848.webp");
  background-image: linear-gradient(145deg, rgba(2, 91, 76, .16), rgba(18, 26, 22, .36)), image-set(
    url("/assets/images/responsive/backgrounds/artemis-rescue-480.avif") type("image/avif") 1x,
    url("/assets/images/responsive/backgrounds/artemis-rescue-848.avif") type("image/avif") 2x,
    url("/assets/images/responsive/backgrounds/artemis-rescue-480.webp") type("image/webp") 1x,
    url("/assets/images/responsive/backgrounds/artemis-rescue-848.webp") type("image/webp") 2x
  );
}

.show-step { display: inline-flex; align-items: center; gap: 14px; font-size: 21px; font-weight: 600; color: var(--accent); letter-spacing: .01em; }
.show-step b { width: 48px; height: 48px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-size: 24px; }
.show-copy h3 { font-family: var(--serif); font-size: clamp(27px, 3.1vw, 36px); color: var(--ink); margin: 18px 0 14px; line-height: 1.15; letter-spacing: -.01em; }
.show-copy p { font-size: 17.5px; color: var(--text); }
.show-copy ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.show-copy li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--text-2, #46525f); }
.show-copy li svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 1px; }
.show-cta-group { flex-wrap: wrap; gap: 12px; }
.show-copy .show-cta-group { margin-top: 26px; }
.show-copy .show-cta-group .btn { margin-top: 0; }
.show-cta-desktop { display: flex; }
.show-cta-mobile { display: none; }

@media (max-width: 980px) {
  .showcase { grid-auto-rows: auto; }
  .show-row, .show-row.flip { grid-template-columns: 1fr; gap: 26px; }
  .show-row.flip .show-copy { order: 0; }
  .show-row.flip .show-visual { order: 1; }
  .show-cta-desktop { display: none; }
  .show-cta-mobile { display: flex; justify-self: start; order: 2; }
  .show-visual { padding: 18px; }
  .show-visual::before,
  .show-row.flip .show-visual::before {
    inset: 0 calc(-1 * var(--picture-expand)) calc(-1 * var(--picture-expand));
  }
  .pm-app { grid-template-columns: 74px 1fr; }
  .pm-brand b, .pm-sec-head span, .pm-crow .nm, .pm-foot a span { display: none; }
  .pm-crow { justify-content: center; } .pm-foot a { justify-content: center; }
  .feature--wide { row-gap: 28px; }
}
@media (max-width: 640px) {
  .showcase { margin-inline: 0; }
  .show-row {
    padding: 24px 18px;
    border-radius: 22px;
  }
}
@media (max-width: 560px) {
  .pm-client-workspace { height: 430px; }
  .cw-app { grid-template-columns: minmax(0, 1fr) 54%; }
  .cw-chat { padding-inline: 9px; }
  .cw-empty { width: 92%; }
  .cw-empty b { font-size: 10px; }
  .cw-composer { width: calc(100% - 12px); right: 6px; padding-left: 7px; }
  .cw-composer em { display: none; }
  .cw-composer i { width: 19px; height: 19px; }
  .cw-card-head { padding-inline: 6px; }
  .cw-card-head b { font-size: 9px; }
  .cw-quick-links { padding-inline: 5px; }
  .cw-quick-link { grid-template-columns: 18px minmax(0, 1fr) 8px; gap: 4px; padding-inline: 4px; }
  .cw-quick-link i { width: 18px; height: 18px; }
  .cw-quick-link > b { font-size: 6.7px; }
  .cw-overview { padding-inline: 5px; }
  .cw-overview dl > div { grid-template-columns: 58px minmax(0, 1fr); gap: 5px; padding-inline: 2px; }
  .cw-overview dt { font-size: 5.5px; }
  .cw-overview dd { font-size: 6.8px; }
  .cw-overview .is-diagnosis dd { font-size: 6px; }
  .pm-msg { max-width: 92%; }
  body.theme-artemis .hero__visual { padding: 12px; border-radius: 20px; }
  body.theme-artemis .hero__visual .pm-app { grid-template-columns: 1fr; min-height: 380px; }
  body.theme-artemis .hero__visual .pm-side { display: none; }
  body.theme-artemis .hero__visual .pm-chead .sub,
  body.theme-artemis .hero__visual .pm-input .pm-pill { display: none; }
  .pm-vtr { grid-template-columns: 64px minmax(0, 1fr); }
  .pm-vtr .nt { display: none; }
  .pm-vhead .r { display: none; }
}

/* The webinar uses the same width, radius and content gap as the other major
   framed panels. */
body.theme-artemis .webinar-page {
  padding-top: calc(var(--section-space) + var(--nav-offset) + 16px);
}
.feature--wide-solo {
  margin: 0 -24px;
  border-radius: 30px;
}
.feature--wide .webinar-title {
  margin: 20px 0 10px;
  color: #fff;
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}
@media (max-width: 640px) {
  .feature--wide-solo { margin: 0; border-radius: 22px; }
  .feature--wide .webinar-title { font-size: 25px; }
}

/* Static webinar signup artwork. */
.webinar-visual { min-width: 0; }
.webinar-video-frame {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .6);
}
.webinar-video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  background: #061e1a;
  color: #fff;
  cursor: pointer;
  text-align: left;
}
.webinar-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 25, 21, .08), rgba(3, 25, 21, .68));
  transition: background .2s ease;
}
.webinar-video:hover::after { background: linear-gradient(180deg, rgba(3, 25, 21, 0), rgba(3, 25, 21, .58)); }
.webinar-video img { width: 100%; height: 100%; object-fit: cover; }
.webinar-video__label,
.webinar-video__cta,
.webinar-video__play { position: absolute; z-index: 1; }
.webinar-video__label {
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(3, 56, 47, .88);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.webinar-video__play {
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  background: #fff;
  color: var(--pm-primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  transition: transform .2s ease;
}
.webinar-video:hover .webinar-video__play { transform: translate(-50%, -50%) scale(1.08); }
.webinar-video__play svg { width: 28px; height: 28px; margin-left: 3px; }
.webinar-video__cta { left: 18px; bottom: 15px; font-size: 14px; font-weight: 600; }
.webinar-video-embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 13px;
  background: #061e1a;
}
.webinar-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 13px;
  background: #f9f7f2;
  color: #111820;
  pointer-events: none;
}
.webinar-card__label {
  position: absolute;
  top: 6%;
  left: 5%;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--pm-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.webinar-card__circle { position: absolute; border-radius: 50%; }
.webinar-card__circle--blue { width: 27%; aspect-ratio: 1; top: -12%; right: 7%; background: #2d559e; }
.webinar-card__circle--sand { width: 27%; aspect-ratio: 1; top: 12%; right: 2%; background: #f2d4a4; }
.webinar-card__copy { position: absolute; top: 26%; left: 5%; }
.webinar-card__copy strong {
  display: block;
  font-family: var(--sans);
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.06;
  text-transform: uppercase;
}
.webinar-card__copy > span { display: block; margin-top: 10px; color: #657078; font-size: 14px; }
.webinar-card__presenter {
  position: absolute;
  left: 5%;
  bottom: 8%;
  display: flex;
  align-items: center;
  gap: 10px;
}
.webinar-card__presenter img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 22%; }
.webinar-card__presenter span { display: grid; }
.webinar-card__presenter b { font-size: 12px; line-height: 1.2; }
.webinar-card__presenter small { margin-top: 2px; color: #657078; font-size: 9px; text-transform: uppercase; }
.webinar-card__logo { position: absolute; right: 5%; bottom: 9%; width: 22%; height: auto; }
.webinar-card__cta { position: absolute; right: 5%; top: 58%; color: var(--pm-primary); font-size: 14px; font-weight: 700; }
.webinar-archive-link {
  display: block;
  width: fit-content;
  margin-top: 12px;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.webinar-archive-link:hover { color: #fff; }

@media (max-width: 640px) {
  .webinar-video__play { width: 54px; height: 54px; }
  .webinar-card__copy strong { font-size: clamp(16px, 5vw, 24px); }
  .webinar-card__copy > span,
  .webinar-card__cta { font-size: 12px; }
  .webinar-card__presenter img { width: 38px; height: 38px; }
}
@media (max-width: 480px) {
  .webinar-card {
    min-height: 210px;
    aspect-ratio: auto;
  }
  .webinar-card__label {
    padding: 5px 8px;
    font-size: 9px;
  }
  .webinar-card__copy { top: 29%; }
  .webinar-card__copy strong { font-size: clamp(16px, 5.2vw, 20px); }
  .webinar-card__copy > span { margin-top: 6px; }
  .webinar-card__cta { display: none; }
  .webinar-card__presenter { bottom: 7%; }
  .webinar-card__logo { bottom: 8%; width: 24%; }
}

/* ---------- Static feature stories ---------- */
#features .head p { margin-top: 12px; }
.artemis-feature-wrap { max-width: 1200px; }
.artemis-feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.artemis-feature-row {
  --feature-text: var(--ink);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0;
  overflow: hidden;
  padding: 18px;
  border-radius: 24px;
  background: var(--accent-soft);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration-base) var(--ease-layout),
    box-shadow var(--duration-base) var(--ease-layout);
}
@media (hover: hover) {
  .artemis-feature-row:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
  }
}
.artemis-feature-row--reverse .artemis-feature-card { order: 2; }
.artemis-feature-row--reverse .artemis-feature-media { order: 1; }
.artemis-feature-card {
  min-width: 0;
  order: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 26px 8px 8px;
  color: var(--feature-text);
  background: transparent;
}
.artemis-feature-card h3 {
  max-width: 100%;
  margin: 0 0 12px;
  color: inherit;
  font-family: var(--serif);
  font-size: clamp(23px, 2vw, 29px);
  line-height: 1.1;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}
.artemis-feature-card p {
  margin: 0;
  color: inherit;
  font-size: clamp(15.5px, 1.45vw, 18px);
  line-height: 1.58;
}
.artemis-feature-media {
  min-width: 0;
  order: 1;
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--tint-2);
}
.artemis-feature-media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.artemis-feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(.96);
}
.artemis-feature-list:not(.is-expanded) > .artemis-feature-row:nth-child(n + 4) {
  display: none;
}
.artemis-feature-toggle {
  display: flex;
  width: fit-content;
  margin: 18px auto 0;
  align-items: center;
  gap: 10px;
  padding: 11px 17px;
  border: 1px solid rgba(2, 91, 76, .24);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, .72);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.artemis-feature-toggle::after {
  content: "+";
  width: 18px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}
.artemis-feature-toggle[aria-expanded="true"]::after { content: "−"; }
.artemis-feature-toggle:hover { border-color: rgba(2, 91, 76, .44); }
.artemis-feature-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 1100px) {
  .artemis-feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .artemis-feature-list {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 30px;
  }
  .artemis-feature-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 16px;
    border-radius: 22px;
  }
  .artemis-feature-card {
    order: 2;
    min-height: 0;
    padding: 24px 6px 8px;
  }
  .artemis-feature-row--reverse .artemis-feature-card { order: 2; }
  .artemis-feature-row--reverse .artemis-feature-media { order: 1; }
  .artemis-feature-card h3 { font-size: clamp(23px, 5.4vw, 27px); }
  .artemis-feature-media {
    order: 1;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
  }
}

/* ---------- Feature carousel: 3D cover-flow — one card centred in front,
   neighbours peek from behind at an angle, the rest stack further back and
   fade out. JS sets is-center / is-left / is-right / is-behind on each card;
   CSS owns the transforms. All six cards stay in the DOM for SEO/screen readers. */
#features .head p { margin-top: 12px; }
#features .fcar { margin-top: 20px; }

.fcar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-top: 48px; }

.fcar__stage {
  position: relative;
  height: clamp(310px, 36vw, 370px);
  perspective: 1400px;
  perspective-origin: 50% 50%;
  overflow: hidden;
  outline: none;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}
.fcar__stage:active { cursor: grabbing; }
.fcar__stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }

.fcar .features {
  position: relative;
  width: 100%;
  height: 100%;
  margin-top: 0;
  transform-style: preserve-3d;
}

.fcar .feature {
  position: absolute;
  left: 50%;
  top: 50%;
  box-sizing: border-box;
  border: 0;
  width: min(480px, 94%);
  height: 330px;
  padding: 40px 38px;
  margin: 0;
  overflow: hidden;
  flex: none;
  contain: layout paint;
  transform-style: flat;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1), opacity .55s ease, box-shadow .55s ease;
  pointer-events: none;
}
.fcar .feature .ic { width: 56px; height: 56px; border-radius: 15px; }
.fcar .feature .ic svg { width: 28px; height: 28px; }
.fcar .feature h3 { font-size: clamp(22px, 2.4vw, 26px); margin: 24px 0 12px; line-height: 1.2; }
.fcar .feature p { font-size: 17px; line-height: 1.55; }
.fcar .feature--support-plan {
  background:
    linear-gradient(180deg, rgba(3, 25, 21, .18), rgba(3, 25, 21, .82)),
    url("/assets/images/support-intervention-plan.webp") center / cover no-repeat;
  border-color: rgba(255, 255, 255, .3);
}
.fcar .feature--parent-communication {
  background:
    linear-gradient(180deg, rgba(3, 25, 21, .18), rgba(3, 25, 21, .82)),
    url("/assets/images/parent-communication.webp") center / cover no-repeat;
  border-color: rgba(255, 255, 255, .3);
}
.fcar .feature--template-library {
  background:
    linear-gradient(180deg, rgba(3, 25, 21, .18), rgba(3, 25, 21, .82)),
    url("/assets/images/template-library.webp") center / cover no-repeat;
  border-color: rgba(255, 255, 255, .3);
}
.fcar .feature--central-calendar {
  background:
    linear-gradient(180deg, rgba(3, 25, 21, .18), rgba(3, 25, 21, .82)),
    url("/assets/images/central-calendar.webp") center / cover no-repeat;
  border-color: rgba(255, 255, 255, .3);
}
.fcar .feature--voice-dictation {
  background:
    linear-gradient(180deg, rgba(3, 25, 21, .18), rgba(3, 25, 21, .82)),
    url("/assets/images/voice-dictation.png") center / cover no-repeat;
  border-color: rgba(255, 255, 255, .3);
}
.fcar .feature--insurer-invoicing {
  background:
    linear-gradient(180deg, rgba(3, 25, 21, .18), rgba(3, 25, 21, .82)),
    url("/assets/images/insurer-invoicing.webp") center / cover no-repeat;
  border-color: rgba(255, 255, 255, .3);
}
.fcar .feature--automated-reports {
  background:
    linear-gradient(180deg, rgba(3, 25, 21, .18), rgba(3, 25, 21, .82)),
    url("/assets/images/automated-reports.webp") center / cover no-repeat;
  border-color: rgba(255, 255, 255, .3);
}
.fcar .feature--icf-documentation {
  background:
    linear-gradient(180deg, rgba(3, 25, 21, .12), rgba(3, 25, 21, .78)),
    url("/assets/images/sandy-millar-nuS2GDpCDoI-unsplash.jpg") center / cover no-repeat;
  border-color: rgba(255, 255, 255, .3);
}
.fcar .feature--progress-documentation {
  background:
    linear-gradient(180deg, rgba(3, 25, 21, .18), rgba(3, 25, 21, .82)),
    url("/assets/images/luke-southern-9yCYGgPe5Kg-unsplash.jpg") center / cover no-repeat;
  border-color: rgba(255, 255, 255, .3);
}
/* Keep card photos proportional; the former percentage width/height pair
   stretched landscape images vertically on laptop-sized cards. */
.fcar .feature[class*="feature--"] {
  background-color: #092d27;
  background-size: 102% 102%, cover;
  background-repeat: no-repeat;
  background-position: center;
  background-clip: border-box;
  box-shadow: inset 0 0 0 1px rgba(9, 45, 39, .35);
}
.fcar .feature--support-plan .ic,
.fcar .feature--parent-communication .ic,
.fcar .feature--template-library .ic,
.fcar .feature--central-calendar .ic,
.fcar .feature--voice-dictation .ic,
.fcar .feature--insurer-invoicing .ic,
.fcar .feature--specialist-coordination .ic,
.fcar .feature--automated-reports .ic,
.fcar .feature--icf-documentation .ic,
.fcar .feature--progress-documentation .ic {
  color: #fff;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}
.fcar .feature--support-plan h3,
.fcar .feature--support-plan p,
.fcar .feature--parent-communication h3,
.fcar .feature--parent-communication p,
.fcar .feature--template-library h3,
.fcar .feature--template-library p,
.fcar .feature--central-calendar h3,
.fcar .feature--central-calendar p,
.fcar .feature--voice-dictation h3,
.fcar .feature--voice-dictation p,
.fcar .feature--insurer-invoicing h3,
.fcar .feature--insurer-invoicing p,
.fcar .feature--specialist-coordination h3,
.fcar .feature--specialist-coordination p,
.fcar .feature--automated-reports h3,
.fcar .feature--automated-reports p,
.fcar .feature--icf-documentation h3,
.fcar .feature--icf-documentation p,
.fcar .feature--progress-documentation h3,
.fcar .feature--progress-documentation p { color: #fff; }
.fcar .feature:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--border); }

.fcar .feature.is-center {
  transform: translate(-50%, -50%) translateZ(80px) rotateY(0deg) scale(1);
  opacity: 1;
  z-index: 30;
  pointer-events: auto;
  box-shadow: var(--shadow-md);
}
.fcar .feature.is-center:hover {
  transform: translate(-50%, -50%) translateZ(80px) rotateY(0deg) scale(1);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.fcar .feature.is-left {
  transform: translate(calc(-50% - 42%), -50%) translateZ(-60px) rotateY(32deg) scale(.86);
  opacity: .72;
  z-index: 20;
}

.fcar .feature.is-right {
  transform: translate(calc(-50% + 42%), -50%) translateZ(-60px) rotateY(-32deg) scale(.86);
  opacity: .72;
  z-index: 20;
}

.fcar .feature.is-behind {
  transform: translate(-50%, -50%) translateZ(-220px) rotateY(0deg) scale(.72);
  opacity: 0;
  z-index: 10;
}

.fcar__btn {
  width: 48px; height: 48px; border-radius: 50%; flex: none; padding: 0;
  display: grid; place-items: center;
  background: var(--surface); color: var(--accent);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: background .16s ease, color .16s ease, opacity .16s ease;
  z-index: 40;
}
.fcar__btn svg { width: 20px; height: 20px; }
.fcar__btn:hover:not(:disabled) { background: var(--accent); color: #fff; border-color: var(--accent); }
.fcar__btn:disabled { opacity: .3; cursor: default; }

.fcar__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.fcar__dot {
  position: relative;
  width: 24px; height: 24px; border-radius: 50%; padding: 0; border: none;
  background: transparent;
  cursor: pointer;
}
.fcar__dot::before {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  content: "";
  transition: background .2s ease, transform .2s ease;
}
.fcar__dot.is-active::before { background: var(--accent); transform: scale(1.25); }

@media (max-width: 640px) {
  .fcar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
  }
  .fcar__stage {
    grid-column: 1 / -1;
    grid-row: 1;
    height: 410px;
    perspective: none;
  }
  .fcar .feature {
    width: min(360px, 100%);
    height: 380px;
    padding: 32px 24px;
  }
  .fcar .feature .ic { width: 52px; height: 52px; }
  .fcar .feature .ic svg { width: 26px; height: 26px; }
  .fcar .feature h3 { font-size: 21px; margin: 20px 0 10px; }
  .fcar .feature p { font-size: 16px; }
  .fcar .feature.is-center,
  .fcar .feature.is-center:hover {
    transform: translate(-50%, -50%);
  }
  .fcar .feature.is-left,
  .fcar .feature.is-right,
  .fcar .feature.is-behind {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.94);
  }
  .fcar__btn {
    position: static;
    width: 42px;
    height: 42px;
    transform: none;
  }
  .fcar__btn:first-child {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }
  .fcar__btn:last-child {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
  .fcar__btn svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .fcar .feature { transition-duration: .01ms; }
}

/* CTA sitting under a walkthrough step's checklist. */
.show-copy .btn { margin-top: 26px; }

/* The dark feature panel carries the webinar sign-up, so its button borrows
   the .cta panel's inverted primary — white fill, green label — which is this
   page's established treatment for a button on forest green (a plain
   .btn-primary would be green-on-green). */
.feature--wide .btn { margin-top: 24px; }
.feature--wide .btn-primary { background: #fff; color: var(--green-deep); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .35); }
.feature--wide .btn-primary:hover { background: #f1f7f4; }

/* ---------- Customer recommendations: wide cards in a seamless banner ---------- */
.testi-marquee {
  position: relative; width: 100vw; margin: 48px 0 0 calc(50% - 50vw);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.testi-track {
  display: flex; align-items: stretch; width: max-content;
  animation: testi-scroll 52s linear infinite;
}
.testi-group {
  display: flex; align-items: stretch; gap: 24px; padding: 12px 24px 36px 0;
  flex: none;
}
@keyframes testi-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.testi {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  width: 430px; height: 240px; margin: 0; padding: 22px 26px; flex: none;
  border: 1px solid var(--border-strong); border-radius: 22px;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 18px 42px -32px rgba(2, 91, 76, .28);
  transition: transform .28s ease, background-color .28s ease, box-shadow .28s ease;
}
.testi:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 20px 44px -30px rgba(2, 91, 76, .38);
}
.testi__quote {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: 17px; line-height: 1.48; color: var(--ink);
  text-wrap: pretty; align-self: stretch;
}
.testi__quote mark {
  background: var(--accent-soft); color: inherit;
  padding: .06em .22em; border-radius: 5px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-color .28s ease;
}
.testi:hover .testi__quote mark { background: rgba(2, 91, 76, .16); }
.testi__quote strong { font-weight: inherit; color: inherit; }
.testi__who { margin: 0 0 16px; display: flex; align-items: center; gap: 13px; }
.testi__av {
  width: 54px; height: 54px; border-radius: 50%; overflow: hidden; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-deep), #4fae94);
  color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 4px 12px -5px rgba(2, 91, 76, .4);
  transition: transform .28s ease, box-shadow .28s ease;
}
.testi:hover .testi__av {
  transform: scale(1.06);
  box-shadow: 0 8px 18px -7px rgba(2, 91, 76, .55);
}
.testi__av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testi__meta { text-align: left; }
.testi__meta b { display: block; color: var(--ink); font-size: 15px; line-height: 1.25; }
.testi__meta span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
@media (max-width: 640px) {
  .testi {
    width: min(340px, calc(100vw - 32px));
    height: auto;
    min-height: 230px;
    padding: 20px 22px;
  }
  .testi__quote { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .testi-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .testi-track { animation: none; }
  .testi, .testi__quote mark, .testi__av { transition: none; }
  .testi:hover, .testi:hover .testi__av { transform: none; }
}
@media (hover: none) and (pointer: coarse) {
  .testi-marquee {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .testi-marquee::-webkit-scrollbar { display: none; }
  .testi-track { animation: none; }
  .testi-group[aria-hidden="true"] { display: none; }
  .testi { scroll-snap-align: center; }
}
/* Lead row: one in-depth testimonial with its quote beside the portrait. */
.testi-stories {
  margin-top: 40px; display: grid; grid-template-columns: 1fr;
  gap: 8px 32px; align-items: start;
}
.story {
  display: flex; flex-direction: row; align-items: flex-start; gap: 32px;
  width: 100%; margin: 0; text-align: left; padding: 36px 38px;
  border: 1px solid var(--border-strong); border-radius: 22px;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 18px 42px -32px rgba(2, 91, 76, .28);
  transition: background-color .28s ease, border-color .28s ease,
              box-shadow .28s ease, transform .28s ease;
}
.story:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .88);
  border-color: var(--border-strong);
  box-shadow: 0 20px 44px -30px rgba(2, 91, 76, .38);
}
/* Compact horizontal attribution row beneath the quote: portrait beside the
   name / role / organisation. margin-top:auto pins it to the bottom of the
   (equal-height) card so the two cards' profiles and names line up. */
.story__person {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  flex: 0 0 120px;
}
.story__portrait {
  position: relative;
  width: 120px; height: 120px; border-radius: 24px; flex: none; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-deep), #4fae94);
  color: #fff; font-weight: 700; font-size: 18px; letter-spacing: .5px;
  box-shadow: 0 8px 18px -10px rgba(2, 91, 76, .5);
}
.story__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.story__meta b { display: block; color: var(--ink); font-size: 16px; line-height: 1.3; }
.story__meta span { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.story__quote {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: 17px; line-height: 1.48; color: var(--ink);
  text-wrap: pretty; align-self: center;
}
.story__quote strong { font-weight: inherit; color: inherit; }
@media (max-width: 760px) {
  .testi-stories { grid-template-columns: 1fr; gap: 8px; margin-top: 32px; }
  .story { flex-direction: column; padding: 28px 24px; }
  .story__quote { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .story { transition: none; }
  .story:hover { transform: none; }
}

/* Give the remaining Artemis cards the same lift used by feature/security cards. */
.stat {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.show-row.reveal:not(.in) {
  transition: opacity .6s ease, transform .6s ease;
}
@media (hover: hover) and (pointer: fine) {
  .stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stat { transition: none; }
  .stat:hover { transform: none; }
}

/* Keep the classical artwork on larger screens, but simplify framed product
   previews and security panels on phones. */
@media (max-width: 640px) {
  body.theme-artemis .hero { --first-section-pad: 52px; }
  body.theme-artemis .hero__grid {
    padding-top: 0;
    gap: 0;
  }
  body.theme-artemis .hero h1.display {
    width: calc(100% - 24px);
    margin-inline: auto;
    font-size: clamp(30px, 8.2vw, 34px);
    line-height: 1.14;
    text-align: center;
    text-wrap: balance;
  }
  body.theme-artemis .hero .lead {
    width: calc(100% - 24px);
    margin: 24px auto 0;
    font-size: 16px;
    line-height: 1.62;
    text-align: center;
    text-wrap: pretty;
  }
  body.theme-artemis .hero__visual {
    width: calc(100% - 24px);
    margin: 28px auto 0;
    padding: 0;
    background: none;
    box-shadow: none;
  }
  body.theme-artemis .hero__visual::before { display: none; }
  body.theme-artemis .hero__cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: calc(100% - 24px);
    margin: 22px auto 0;
    gap: 10px;
  }
  body.theme-artemis .hero__cta .btn {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 10px;
    justify-content: center;
    font-size: 13px;
    white-space: nowrap;
  }
  body.theme-artemis .hero__cta .btn svg { width: 16px; height: 16px; }
  body.theme-artemis .hero__trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 24px);
    margin: 18px auto 0;
    gap: 8px;
  }
  body.theme-artemis .hero__trust .trust-item {
    min-width: 0;
    margin: 0;
    padding: 4px 2px;
    justify-content: flex-start;
    font-size: 12px;
    line-height: 1.35;
  }

  body.theme-artemis .strip__label {
    max-width: 30ch;
    margin-inline: auto;
    font-size: 11px;
    line-height: 1.55;
  }
  body.theme-artemis .logos-marquee { margin-top: 24px; }
  body.theme-artemis .logos-group { gap: 48px; padding-right: 48px; }
  body.theme-artemis .logos-track img { height: 40px; max-width: 170px; }
  body.theme-artemis .logos-track .logo-lg { height: 52px; }

  body.theme-artemis .head.center .lead {
    font-size: 16px;
    line-height: 1.58;
  }
  body.theme-artemis .stats-section { padding-top: 18px; }

  .showcase {
    gap: 20px;
    margin-top: 36px;
  }
  .show-row,
  .show-row.flip {
    gap: 20px;
    padding: 20px 14px;
  }
  .show-step { gap: 10px; font-size: 18px; }
  .show-step b {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 21px;
  }
  .show-copy h3 {
    margin: 15px 0 12px;
    font-size: clamp(25px, 7.4vw, 29px);
  }
  .show-copy p { font-size: 16px; line-height: 1.58; }
  .show-copy ul { margin-top: 16px; gap: 10px; }
  .show-copy li { font-size: 14.5px; line-height: 1.45; }
  .show-copy .btn { margin-top: 20px; }
  .show-cta-mobile {
    width: 100%;
    justify-content: center;
  }
  .show-visual,
  .show-visual > .pm {
    min-width: 0;
    max-width: 100%;
  }
  .show-visual { padding: 0; }
  .show-visual::before,
  .show-row.flip .show-visual::before { display: none; }

  .artemis-feature-card p { font-size: 15.5px; line-height: 1.52; }
  .artemis-feature-toggle {
    min-height: 44px;
    margin-top: 16px;
  }

  body.theme-artemis .cta {
    padding: 34px 20px;
  }
  body.theme-artemis .cta p {
    font-size: 16px;
    line-height: 1.55;
  }
  body.theme-artemis .cta__btns { gap: 10px; }

  .testi-stories { margin-top: 28px; }
  .story { gap: 20px; }
  .story__person {
    width: 100%;
    flex: none;
    flex-direction: row;
    align-items: center;
  }
  .story__portrait {
    width: 82px;
    height: 82px;
    border-radius: 18px;
  }
  .story__quote { font-size: 16px; line-height: 1.55; }
  .testi-marquee { margin-top: 32px; }

  body.theme-artemis .faq { margin-top: 28px; }
  body.theme-artemis .faq summary,
  body.theme-artemis .faq p {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  body.theme-artemis .hero h1.display {
    width: 100%;
    font-size: 30px;
  }
  body.theme-artemis .hero .lead,
  body.theme-artemis .hero__visual,
  body.theme-artemis .hero__cta {
    width: 100%;
  }
  body.theme-artemis .hero__cta { grid-template-columns: 1fr; }
  body.theme-artemis .hero__cta .btn { font-size: 14px; }
  body.theme-artemis .stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  body.theme-artemis .stat {
    min-height: 128px;
    padding: 20px 18px;
  }
  body.theme-artemis .stat .n { font-size: 34px; }
  body.theme-artemis .stat .k { font-size: 12px; }
  .show-row,
  .show-row.flip { padding-inline: 11px; }
}

@media (max-width: 340px) {
  body.theme-artemis .nav__inner {
    min-height: 56px;
    padding-block: 4px;
  }
  body.theme-artemis .nav .brand-logo--header {
    width: 112px;
    height: 28px;
  }
  body.theme-artemis .nav__cta > .btn { display: none; }
  body.theme-artemis .nav__toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}
