/* Additions for inner pages, cookies, legal text and customer stories.
   The homepage look comes from styles.css. Keep new rules scoped. */

/* The hero line is the largest thing on a phone screen. Keep it visible
   immediately so it is not held back by the fade-in. It still slides up. */
.hero .reveal { opacity: 1; }

.section.is-first { padding-top: clamp(120px, 14vw, 168px); }

.page-chart { margin-top: clamp(48px, 6vw, 72px); }

.cta-note--link { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.cta-note--link:hover { color: var(--mint-2); }

.footer__cols { grid-template-columns: repeat(4, minmax(108px, auto)); gap: 28px 36px; }
.footer__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
  margin: 0 0 14px;
}
.footer__legal button {
  font: inherit;
  font-size: 13px;
  color: var(--dim);
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.footer__legal button:hover { color: #fff; }
.footer__brand img { width: 240px; height: auto; margin-bottom: 22px; }

.crumbs { margin: 0 0 28px; }
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--dim);
}
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li:not(:last-child)::after { content: "/"; color: var(--dim); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current="page"] { color: var(--text); }

.legal-page { padding: clamp(120px, 14vw, 160px) 0 clamp(72px, 8vw, 120px); }
.legal h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 600;
  margin: 0 0 12px;
  max-width: 16ch;
}
.legal h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 2.1em 0 .6em;
}
.legal h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.015em;
  font-weight: 600;
  margin: 1.5em 0 .45em;
}
.legal h5 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mint);
  font-weight: 500;
  margin: 0 0 28px;
}
.legal p, .legal li { color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.legal p { margin: 0 0 14px; max-width: 68ch; }
.legal ul, .legal ol { margin: 0 0 16px; padding-left: 1.25em; max-width: 68ch; }
.legal li { margin: 0 0 8px; }
.legal a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal-callout {
  margin: 8px 0 20px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(126, 240, 184, .06);
  box-shadow: inset 0 0 0 1px rgba(126, 240, 184, .28);
  max-width: 72ch;
}
.legal-callout p:last-child { margin-bottom: 0; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 22px;
  font-size: 14.5px;
  display: block;
  overflow-x: auto;
}
.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  min-width: 8rem;
}
.legal th { color: var(--text); font-weight: 600; font-size: 13px; }
.legal td { color: var(--muted); }

.stories__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.stories .phone {
  width: 100%;
  max-width: 340px;
  justify-self: center;
}
.story-card__quote {
  margin: 2px 0 0;
  padding: 0;
  border: 0;
}
.story-card__quote p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text);
  text-wrap: balance;
}
.story-card__quote p::before { content: "“"; }
.story-card__quote p::after { content: "”"; }
.phone__who { color: var(--muted); font-size: 13.5px; }
.stories__feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 320px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.stories__quote .h2 { max-width: 12ch; }
.story-pull { margin: 8px 0 0; padding: 0; border: 0; }
.story-pull p {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--text);
  text-wrap: balance;
}
.story-pull p::before { content: "“"; }
.story-pull p::after { content: "”"; }
.story-pull footer { font-size: 14.5px; color: var(--muted); }
.story-pull footer b { color: var(--text); font-weight: 600; margin-right: 8px; }
.stories--feature .phone { max-width: 320px; }

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  justify-content: center;
  background: #0c1711;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .14), 0 -18px 50px rgba(0, 0, 0, .35);
}
.cookie[hidden] { display: none !important; }
.cookie__inner {
  width: min(1120px, 100%);
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 18px 28px;
}
.cookie__text {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}
.cookie__text a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 10px; flex: none; align-items: center; }
.cookie__btn {
  min-width: 120px;
  height: 44px;
  padding: 0 22px;
  border-radius: 99px;
  background: #fff;
  color: var(--mint-ink);
  font-weight: 550;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(6, 48, 31, .08);
}
.cookie__btn:hover { transform: translateY(-1px); }
body.has-cookie-banner { padding-bottom: 92px; }
body.has-cookie-banner .toast { bottom: 108px; }

.not-found .hero__ctas { margin-top: 8px; }

@media (max-width: 900px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .stories__grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding-bottom: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .stories .phone {
    flex: 0 0 min(78vw, 300px);
    width: min(78vw, 300px);
    max-width: none;
    scroll-snap-align: center;
  }
  .stories__feature { grid-template-columns: 1fr; }
  .stories--feature .phone { justify-self: center; }
}
/* DO NOT CENTRE: play button must stay bottom-right (owner request, repeated).
   Single source of truth for every story film and every .phone__play control.
   The hit target still covers the film so the whole card plays. Do not put the
   icon back over the face with place-items, top/left 50%, or a padding-top offset. */
.phone__play {
  display: block;
  padding: 0;
  background: linear-gradient(180deg, transparent 72%, rgba(5, 9, 7, .28));
}
.phone__play > .phone__icon {
  position: absolute;
  top: auto;
  left: auto;
  right: 18px;
  bottom: 18px;
  margin: 0;
  width: 68px;
  height: 68px;
  background: rgba(255, 255, 255, .78);
  color: #141816;
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72), 0 12px 28px -14px rgba(0, 0, 0, .55);
}
.phone__icon svg { width: 26px; height: 26px; }
.phone__icon .i-play { margin-left: 3px; }
.phone__play:hover .phone__icon,
.phone__play:focus-visible .phone__icon { background: rgba(255, 255, 255, .92); }
.phone.is-playing .phone__play > .phone__icon { width: 68px; height: 68px; transform: none; }
.phone.is-playing .phone__play:hover .phone__icon,
.phone.is-playing .phone__play:focus-visible .phone__icon { transform: none; }
.phone__bar { right: 96px; }

/* DO NOT CENTRE: play button must stay bottom-right (owner request, repeated).
   The product-film control uses the same corner. The hit target covers the
   frame; the icon stays bottom-right. Do not centre it. */
.appfilm__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  padding: 0;
  background: linear-gradient(180deg, transparent 68%, rgba(5, 9, 7, .22));
}
.appfilm__play > .appfilm__icon {
  position: absolute;
  top: auto;
  left: auto;
  right: 16px;
  bottom: 16px;
  margin: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .78);
  color: #141816;
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72), 0 12px 28px -14px rgba(0, 0, 0, .55);
}
.appfilm.is-playing:not(.is-still) .appfilm__play {
  visibility: hidden;
  pointer-events: none;
}
.appfilm.is-playing .appfilm__play { background: none; }

@media (max-width: 680px) {
  .phone__play > .phone__icon,
  .phone.is-playing .phone__play > .phone__icon {
    right: 12px;
    bottom: 12px;
    width: 56px;
    height: 56px;
  }
  .appfilm__play > .appfilm__icon {
    right: 12px;
    bottom: 12px;
    width: 48px;
    height: 48px;
  }
  .phone__icon svg { width: 22px; height: 22px; }
  .phone__bar { right: 80px; }
  .cookie__inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 16px 18px; }
  .cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .cookie__btn { width: 100%; min-width: 0; }
  .footer__brand img { width: 170px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  body.has-cookie-banner { padding-bottom: 200px; }
  body.has-cookie-banner .toast { bottom: 216px; }
}
img.letter__signature {
  display: block !important;
  width: 160px !important;
  max-width: 160px !important;
  height: auto !important;
  margin: 0 0 10px !important;
}
@media (max-width: 680px) {
  img.letter__signature { width: 130px !important; max-width: 130px !important; }
}

/* Homepage hero: stylised record → note → Cliniko card.
   The product film stays in the repo; this replaces it on the homepage. */
.hero--light .hero__shot {
  background: transparent;
  box-shadow: none;
  overflow: visible;
  border-radius: 0;
}
.hflow { position: relative; width: 100%; }
.hflow__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hflow__card {
  position: relative;
  container-type: inline-size;
  border-radius: 22px;
  overflow: hidden;
  background: #101413;
  box-shadow: 0 30px 70px -36px rgba(20, 24, 22, .45), 0 0 0 1px rgba(20, 24, 22, .06);
  color: #161a18;
  font-family: var(--sans);
}
.hflow__scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
}
.hflow__scene--note {
  position: relative;
  inset: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 16px 16px 14px;
  background: #fff;
}
.hflow[data-phase="ready"] [data-scene="ready"],
.hflow[data-phase="recording"] [data-scene="recording"],
.hflow[data-phase="create"] [data-scene="create"],
.hflow[data-phase="processing"] [data-scene="processing"],
.hflow[data-phase="note"] [data-scene="note"],
.hflow[data-phase="send"] [data-scene="note"],
.hflow[data-phase="sent"] [data-scene="sent"] {
  z-index: 2;
  opacity: 1;
  visibility: visible;
}
/* Green card wipes away, still opaque, to reveal Ready underneath. */
.hflow[data-from="sent"] [data-scene="sent"] {
  z-index: 6;
  opacity: 1;
  visibility: visible;
  animation: hflow-wipe .48s cubic-bezier(.2, .7, .2, 1) forwards;
}
.hflow__scene--dark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 76px 22px 36px;
  text-align: center;
  background: #101413;
  color: #fff;
}
.hflow__top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hflow__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.015em;
  color: rgba(255, 255, 255, .88);
}
.hflow__status--live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e76a7b;
  box-shadow: 0 0 0 0 rgba(231, 106, 123, .55);
  animation: hflow-pulse 1.5s ease-out infinite;
}
.hflow__chip {
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(240, 196, 106, .16);
  color: #f0c46a;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -.01em;
  white-space: nowrap;
  line-height: 1.2;
}
.hflow__time {
  margin: 8px 0 14px;
  font-size: clamp(72px, 22cqi, 104px);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: .86;
  font-variant-numeric: tabular-nums;
}
.hflow__hint {
  margin: -6px 0 14px;
  color: rgba(255, 255, 255, .62);
  font-size: 14px;
  font-weight: 550;
}
.hflow__btn,
.hflow__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  background: #fff;
  color: #161a18;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset;
  transition: transform .12s ease, filter .12s ease, background .2s ease, color .2s ease;
}
.hflow__btn svg { width: 16px; height: 16px; display: block; }
.hflow__btn.is-down,
.hflow__send.is-down { transform: translateY(1px) scale(.98); filter: brightness(.94); }
.hflow__sq {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #e76a7b;
}
.hflow__wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  margin: 0 0 16px;
}
.hflow__wave i {
  display: block;
  width: 4px;
  height: 10px;
  border-radius: 99px;
  background: #7ef0b8;
  transform-origin: center;
}
.hflow[data-phase="recording"] .hflow__wave i { animation: hflow-wave 1.05s ease-in-out infinite; }
.hflow__wave i:nth-child(1) { height: 8px; animation-delay: -.2s; }
.hflow__wave i:nth-child(2) { height: 16px; animation-delay: -.55s; }
.hflow__wave i:nth-child(3) { height: 26px; animation-delay: -.1s; }
.hflow__wave i:nth-child(4) { height: 34px; animation-delay: -.8s; }
.hflow__wave i:nth-child(5) { height: 20px; animation-delay: -.35s; }
.hflow__wave i:nth-child(6) { height: 30px; animation-delay: -.65s; }
.hflow__wave i:nth-child(7) { height: 14px; animation-delay: -.05s; }
.hflow__wave i:nth-child(8) { height: 24px; animation-delay: -.48s; }
.hflow__wave i:nth-child(9) { height: 10px; animation-delay: -.9s; }
.hflow__scene--wait {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 32px;
  background: #fff;
}
.hflow__wait { width: min(100%, 300px); text-align: center; }
.hflow__wait-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #0f6b46;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hflow__wait-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ef0b8;
  box-shadow: 0 0 0 4px rgba(126, 240, 184, .35);
}
.hflow__wait-title {
  margin: 0 0 22px;
  color: #161a18;
  font-size: clamp(28px, 7.4cqi, 36px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.12;
}
.hflow__ghost {
  display: block;
  height: 12px;
  margin: 10px auto 0;
  border-radius: 99px;
  background: linear-gradient(100deg, #e6e3db 20%, #fbfaf7 42%, #e6e3db 64%);
  background-size: 220% 100%;
}
.hflow[data-phase="processing"] .hflow__ghost { animation: hflow-shimmer 1.35s ease-in-out infinite; }
.hflow__ghost--mid { width: 78%; }
.hflow__ghost--short { width: 52%; }
.hflow__notehead { display: flex; align-items: center; gap: 10px; }
.hflow__mark { width: 32px; height: 32px; flex: none; display: block; }
.hflow__notetitle {
  margin: 0;
  color: #141816;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.hflow__notesub { margin: 2px 0 0; color: #5e675f; font-size: 12.5px; font-weight: 550; line-height: 1.2; }
.hflow__secs { display: flex; flex-direction: column; gap: 11px; }
.hflow__label {
  margin: 0 0 3px;
  color: #0f6b46;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.hflow__line {
  margin: 0;
  color: #1a211e;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -.015em;
  line-height: 1.35;
}
.hflow__skel {
  display: block;
  height: 7px;
  margin-top: 6px;
  border-radius: 99px;
  background: #eceae4;
}
.hflow__skel + .hflow__skel { margin-top: 5px; }
.hflow__skel--mid { width: 74%; }
.hflow__skel--short { width: 56%; }
.hflow__sec {
  opacity: 0;
  transform: translateY(8px);
}
.hflow[data-phase="note"] .hflow__sec,
.hflow[data-phase="send"] .hflow__sec,
.hflow[data-phase="sent"] .hflow__sec {
  opacity: 1;
  transform: none;
}
.hflow[data-phase="note"] .hflow__sec { transition: opacity .48s ease, transform .48s ease; }
.hflow[data-phase="note"] .hflow__sec:nth-child(1) { transition-delay: .02s; }
.hflow[data-phase="note"] .hflow__sec:nth-child(2) { transition-delay: .14s; }
.hflow[data-phase="note"] .hflow__sec:nth-child(3) { transition-delay: .26s; }
.hflow[data-phase="note"] .hflow__sec:nth-child(4) { transition-delay: .38s; }
.hflow__send {
  width: 100%;
  margin-top: auto;
  background: #161a18;
  color: #fff;
  box-shadow: none;
}
.hflow__send-done { display: none; }
.hflow__scene--sent {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  text-align: center;
  background: #0f6b46;
  color: #fff;
}
.hflow__sentin { width: min(100%, 300px); }
.hflow__badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #7ef0b8;
  color: #06301f;
}
.hflow[data-phase="sent"] .hflow__badge { animation: hflow-pop .45s cubic-bezier(.2, .7, .2, 1); }
.hflow__badge svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hflow__sent-title {
  margin: 0;
  font-size: clamp(28px, 7cqi, 36px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.12;
}
.hflow__sent-sub {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}
.hflow__cursor {
  position: absolute;
  z-index: 4;
  width: 30px;
  height: 30px;
  left: 68%;
  top: 72%;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
  fill: #fff;
  stroke: #161a18;
  stroke-width: 1.35;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
}
.hflow[data-phase="sent"] .hflow__cursor,
.hflow[data-phase="processing"] .hflow__cursor,
.hflow[data-from="sent"] .hflow__cursor {
  opacity: 0 !important;
  visibility: hidden !important;
}
.hflow__steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 22px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: #8b938e;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.015em;
}
.hflow__steps li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.hflow__steps i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d5d2ca;
}
.hflow__sep { color: #c4c0b6; font-weight: 500; }
.hflow[data-step="record"] [data-step="record"],
.hflow[data-step="note"] [data-step="note"],
.hflow[data-step="send"] [data-step="send"] { color: #0f6b46; }
.hflow[data-step="note"] [data-step="record"],
.hflow[data-step="send"] [data-step="record"],
.hflow[data-step="send"] [data-step="note"] { color: #3e4843; }
.hflow[data-step="record"] [data-step="record"] i,
.hflow[data-step="note"] [data-step="note"] i,
.hflow[data-step="send"] [data-step="send"] i,
.hflow[data-step="note"] [data-step="record"] i,
.hflow[data-step="send"] [data-step="record"] i,
.hflow[data-step="send"] [data-step="note"] i { background: #7ef0b8; }
.hflow[data-step="record"] [data-step="record"] i,
.hflow[data-step="note"] [data-step="note"] i,
.hflow[data-step="send"] [data-step="send"] i { box-shadow: 0 0 0 3px rgba(126, 240, 184, .4); }
.hflow.is-paused .hflow__wave i,
.hflow.is-paused .hflow__ghost,
.hflow.is-paused .hflow__status--live i,
.hflow.is-paused .hflow__badge { animation-play-state: paused; }

@media (max-width: 1020px) {
  .hero--light .hero__shot { display: flex; justify-content: center; }
  .hflow { width: min(100%, 480px); }
}
@media (max-width: 680px) {
  .hflow__card { border-radius: 18px; }
  .hflow__scene--note { padding: 14px 14px 12px; gap: 10px; }
  .hflow__line { font-size: 14.5px; }
  .hflow__steps { gap: 6px; font-size: 12.5px; }
  .hflow__scene--dark { padding: 70px 16px 28px; }
}

@keyframes hflow-wave {
  0%, 100% { transform: scaleY(.45); }
  50% { transform: scaleY(1); }
}
@keyframes hflow-shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}
@keyframes hflow-pulse {
  0% { box-shadow: 0 0 0 0 rgba(231, 106, 123, .5); }
  70% { box-shadow: 0 0 0 7px rgba(231, 106, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(231, 106, 123, 0); }
}
@keyframes hflow-pop {
  from { transform: scale(.72); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes hflow-wipe {
  from { clip-path: inset(0 0 0 0); }
  to { clip-path: inset(0 0 100% 0); }
}

/* Reduced motion, and the JS still state: the finished note, already sent. */
@media (prefers-reduced-motion: reduce) {
  .hflow[data-phase] .hflow__scene { opacity: 0 !important; visibility: hidden !important; }
  .hflow[data-phase] [data-scene="note"] { opacity: 1 !important; visibility: visible !important; }
  .hflow .hflow__sec { opacity: 1 !important; transform: none !important; }
  .hflow .hflow__cursor { opacity: 0 !important; }
  .hflow .hflow__send-go { display: none !important; }
  .hflow .hflow__send-done { display: inline !important; }
  .hflow .hflow__send { background: #0f6b46 !important; color: #fff !important; }
  .hflow__steps [data-step] { color: #3e4843 !important; }
  .hflow__steps [data-step] i { background: #7ef0b8 !important; box-shadow: none !important; }
  .hflow__steps [data-step="send"] { color: #0f6b46 !important; }
  .hflow__steps [data-step="send"] i { box-shadow: 0 0 0 3px rgba(126, 240, 184, .4) !important; }
}
.hflow.is-still[data-phase] .hflow__scene { opacity: 0 !important; visibility: hidden !important; }
.hflow.is-still[data-phase] [data-scene="note"] { opacity: 1 !important; visibility: visible !important; }
.hflow.is-still .hflow__sec { opacity: 1 !important; transform: none !important; }
.hflow.is-still .hflow__cursor { opacity: 0 !important; }
.hflow.is-still .hflow__send-go { display: none !important; }
.hflow.is-still .hflow__send-done { display: inline !important; }
.hflow.is-still .hflow__send { background: #0f6b46 !important; color: #fff !important; }
.hflow.is-still .hflow__steps [data-step] { color: #3e4843 !important; }
.hflow.is-still .hflow__steps [data-step] i { background: #7ef0b8 !important; box-shadow: none !important; }
.hflow.is-still .hflow__steps [data-step="send"] { color: #0f6b46 !important; }
.hflow.is-still .hflow__steps [data-step="send"] i { box-shadow: 0 0 0 3px rgba(126, 240, 184, .4) !important; }

/* About page. Scoped so the homepage and play controls stay as they are. */
.page-hero { padding-bottom: 36px; }
.page-intro { max-width: 760px; }
.page-intro .h2 { max-width: 16ch; }
.page-intro.about-copy .h2 { max-width: 14em; }
.about-joe .story__copy > p { margin: 0 0 16px; font-size: 17px; line-height: 1.55; color: #3a423e; }
.about-joe .story__copy > p:last-child { margin-bottom: 0; }
.about-path { max-width: 820px; }
.about-path .h3 { margin-bottom: 28px; }
.about-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
  max-width: 960px;
}
.about-paths a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 24px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .03);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .25s, transform .25s var(--ease);
}
.about-paths a:hover { box-shadow: inset 0 0 0 1px rgba(126, 240, 184, .35); transform: translateY(-2px); }
.about-paths b { font-size: 18px; letter-spacing: -.02em; font-weight: 600; }
.about-paths span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.about-industry { padding-top: 12px; padding-bottom: 20px; }
@media (max-width: 800px) {
  .about-paths { grid-template-columns: 1fr; }
}
.mission {
  margin: 28px 0 0;
  padding: 0 0 8px;
  border: 0;
  max-width: 40em;
}
.mission p {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--text);
  text-wrap: pretty;
}
.mission footer { font-size: 14.5px; color: var(--muted); font-style: normal; font-family: var(--sans); }
.mission footer b { color: var(--text); font-weight: 600; margin-right: 8px; }

/* Pricing. Scoped so the homepage and play controls stay as they are. */
.price-intro .h2 { max-width: 11em; }
.price-offer { padding-top: 8px; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.price-card,
.calc-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 36px 36px 32px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(126, 240, 184, .16), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  box-shadow: inset 0 0 0 1px rgba(126, 240, 184, .38);
}
.calc-card { position: relative; }
.price-card .h3 { margin-bottom: 8px; }
.price-card__amount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin: 8px 0 26px;
}
.price-card__figure {
  font-size: clamp(64px, 8vw, 88px);
  line-height: .88;
  letter-spacing: -.045em;
  font-weight: 600;
  color: var(--mint);
}
.price-card__unit {
  color: var(--muted);
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.price-card__points {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.price-card__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16.5px;
  line-height: 1.4;
}
.price-card__points svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: var(--mint-ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: var(--mint);
  border-radius: 50%;
  padding: 4px;
}
.price-card__note {
  margin: 0 0 26px;
  color: var(--muted);
  max-width: 36em;
}
.price-card__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.calc-card__countline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 8px;
}
.calc-card__count {
  font-size: clamp(56px, 6vw, 76px);
  line-height: .88;
  letter-spacing: -.045em;
  font-weight: 600;
  color: var(--mint);
}
.calc-card__countline span:last-child {
  color: var(--muted);
  font-size: 16px;
  font-weight: 550;
}
.calc-card__label {
  display: block;
  margin: 8px 0 4px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.calc-range {
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: var(--mint);
  cursor: pointer;
  background: transparent;
}
.calc-card__scale {
  display: flex;
  justify-content: space-between;
  margin: -6px 0 22px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
}
.calc-card__results { margin: 0 0 16px; }
.calc-card__cost,
.calc-card__time { margin: 0; }
.calc-card__cost {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}
.calc-card__cost [data-calc-cost] {
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 600;
  color: var(--mint);
}
.calc-card__per { color: var(--muted); font-weight: 550; }
.calc-card__time {
  margin-top: 8px;
  font-size: 17px;
  letter-spacing: -.015em;
}
.calc-card__time [data-calc-time] { font-weight: 600; }
.calc-card__grow {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}
.calc-card__assume {
  margin: auto 0 0;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.45;
  max-width: 46em;
}
.calc-card__live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.included-block { margin-top: 56px; }
.included-block .h3 { margin-bottom: 10px; }
.included {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.included li {
  padding: 22px 24px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .03);
  box-shadow: inset 0 0 0 1px var(--line);
}
.included__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.included h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.02em;
  font-weight: 600;
}
.included h3 a:hover { color: var(--mint); }
.included p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.included__wait {
  display: inline-flex;
  margin-top: 14px;
  color: var(--mint);
  font-weight: 600;
  letter-spacing: -.01em;
}
.included__wait:hover { color: var(--mint-2); }
.faq-groups { display: grid; gap: 36px; }
.faq-group h3 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mint);
}
.faq { display: grid; gap: 10px; max-width: none; }
.faq details {
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -.015em;
  font-size: 17px;
  padding: 18px 28px 18px 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(225deg); }
.faq details p { margin: 0 0 18px; max-width: 68ch; color: var(--muted); }
.faq__more { margin: -6px 0 18px; }
.faq__more a { color: var(--mint); font-weight: 600; }
.faq__more a:hover { color: var(--mint-2); }
/* Clinician slider: native range, no fill animation. Reduced motion has nothing extra to disable. */
@media (max-width: 860px) {
  .price-grid,
  .included { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .price-card,
  .calc-card { padding: 26px 20px 24px; }
  .price-card__ctas { flex-direction: column; align-items: stretch; }
  .price-card__ctas .btn {
    width: 100%;
    white-space: normal;
    height: auto;
    min-height: 54px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* Real-app recording. The film already shows the NoteSense window, so this
   frame is a soft rounded card rather than a second browser chrome. */
.appfilm { margin: 0; }
.appfilm__figure { margin: 0; }
.appfilm__frame {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 70px -36px rgba(20, 24, 22, .45), 0 0 0 1px rgba(20, 24, 22, .08);
}
.appfilm__screen {
  position: relative;
  aspect-ratio: 1280 / 732;
  background: #f3f1eb;
}
.appfilm__screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f3f1eb;
}
.appfilm__icon {
  display: grid;
  place-items: center;
}
.appfilm__icon svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.appfilm__icon .i-play { margin-left: 2px; }
.appfilm__icon .i-pause { display: none; }
.appfilm.is-playing .appfilm__icon .i-play { display: none; }
.appfilm.is-playing .appfilm__icon .i-pause { display: block; }
.appfilm__play:hover .appfilm__icon,
.appfilm__play:focus-visible .appfilm__icon { background: rgba(255, 255, 255, .92); }
.appfilm__bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 12px;
  background: #f6f5f2;
  border-top: 1px solid rgba(20, 24, 22, .08);
}
.appfilm__full {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #161a18;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.appfilm__full svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.appfilm__full:hover { background: #0f6b46; }
.appfilm__cap {
  margin: 12px 0 0;
  color: #3e4843;
  font-size: 16.5px;
  line-height: 1.5;
  max-width: 40em;
}
.appfilm__dialog {
  width: min(1100px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 52px 14px 14px;
  border: 0;
  border-radius: 18px;
  background: #101411;
  color: #fff;
  box-shadow: 0 40px 120px -24px rgba(0, 0, 0, .8);
}
.appfilm__dialog::backdrop { background: rgba(5, 9, 7, .78); }
.appfilm__dialog video {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 110px);
  aspect-ratio: 1280 / 732;
  object-fit: contain;
  background: #000;
  border-radius: 12px;
}
.appfilm__close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: #141816;
  font-size: 14px;
  font-weight: 650;
}
.appfilm__close:hover { background: #7ef0b8; }

.sh-how .sh-lede { margin-bottom: 28px; }
.sh-how__body {
  display: grid;
  gap: 22px;
  align-items: start;
}
.sh-how .sh-steps {
  grid-template-columns: 1fr;
  margin-top: 0;
  gap: 14px;
}
.sh-how .sh-steps::before {
  top: 22px;
  bottom: 22px;
  left: 39px;
  right: auto;
  width: 2px;
  height: auto;
}
.sh-screen img[data-scribe-pane] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  opacity: 0;
  background: #f3f1eb;
}
.sh-screen img[data-scribe-pane].is-on { opacity: 1; }
.player__screen img[data-player-pane] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  opacity: 0;
  background: var(--cream);
}
.player__screen img[data-player-pane].is-active { opacity: 1; }

.see-app { margin: 4px 0 56px; }
.see-app__title {
  margin: 0 0 14px;
  color: inherit;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 650;
}
.product .appfilm__frame {
  box-shadow: 0 40px 90px -36px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .1);
}
.product .appfilm__cap { color: var(--muted); }

@media (max-width: 999px) {
  .sh-how__body .appfilm { order: -1; }
}
@media (min-width: 1000px) {
  .sh-how__body {
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
    gap: 28px 40px;
    align-items: center;
  }
}
@media (max-width: 680px) {
  .appfilm__frame { border-radius: 16px; }
  .appfilm__full { min-height: 44px; }
  .appfilm__dialog { padding: 48px 10px 10px; border-radius: 14px; }
  .see-app { margin-bottom: 40px; }
}
