/* VetM8 landing v3, variant B. premium.css: the sections below the chapters.
   Surfaces: the ivory page with radial washes, raised panels, and the chapter green for the film and the closing panel.
   Stage 3: the commercial half composed (pricing, film, features, getting started, trust, FAQ, closing panel, footer),
   the control vocabulary (height-animated disclosures, the billing thumb, the overlay by opacity) and the viewport reveals. */

/* ---------- Disclosures ---------- */
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  padding: 16px 0;
  font-size: var(--fs-ui);
  font-weight: var(--w-heading);
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  flex: none;
  width: 24px;
  color: var(--primary-600);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  transition: transform var(--motion-base) var(--ease-out);
}
details[open] > summary::after {
  transform: rotate(45deg);
}
@media (hover: hover) {
  summary:hover {
    color: var(--primary-600);
  }
}
/* Height-animated disclosures, one path in every engine (P1-12, P2-8): app.js tweens the <details> element's own
   height with the Web Animations API, opening on --ease-out and closing 40 % shorter on --ease-in, and sets
   data-tween while it runs. The overflow is clipped only then, so a settled body never cuts its children's shadows
   or focus rings; flow-root keeps the body's margins inside it. While closing, the plus turns back on the same curve. */
.disclosure-body {
  display: flow-root;
}
.disclosure[data-tween] {
  overflow: clip;
}
.disclosure[data-tween='closing'] > summary::after {
  transform: none;
  transition-duration: calc(var(--motion-base) * 0.6);
  transition-timing-function: var(--ease-in);
}
/* A disclosure whose summary reads as a centred pill button (the price list, the full feature list). */
.text-button {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px 0 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--primary-600);
  font-size: var(--fs-ui);
  font-weight: var(--w-heading);
  text-align: center;
}
.text-button::after {
  width: auto;
  font-size: 20px;
}
@media (hover: hover) {
  .text-button:hover {
    background: var(--primary-50);
    border-color: var(--primary-600);
    color: var(--primary-600);
  }
}
.text-button:active {
  transform: scale(0.985);
}
/* Pill links (mailto) and the dropdown entrances. */
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--primary-600);
  font-size: var(--fs-caption);
  font-weight: var(--w-ui);
  text-decoration: none;
}
@media (hover: hover) {
  .pill-link:hover {
    background: var(--primary-50);
    border-color: var(--primary-600);
    color: var(--primary-600);
  }
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}
.site-menu[open] > .site-menu-links,
.select-options:not([hidden]) {
  animation: panel-in var(--motion-base) var(--ease-out);
  transform-origin: top right;
}
.select-options:not([hidden]) {
  transform-origin: top center;
}

/* ---------- Viewport reveals: app.js marks elements below the chapters with data-reveal, then data-inview once.
   Without JS or under reduced motion no attribute is set, so the page is complete as authored.
   A reveal is a rise at full opacity (P1-11): text keeps its contrast at every moment of the motion, so no frame
   fails 4.5:1 while a section arrives. The step is the element's place in its observer batch; the delay is that
   step times --motion-stagger (P2-7). FAQ items and the closing panel rise together, never staggered. ---------- */
[data-reveal] {
  transform: translateY(var(--reveal-rise));
}
[data-reveal][data-inview] {
  transform: none;
  transition: transform var(--motion-reveal) var(--ease-out);
  transition-delay: calc(var(--reveal-step, 0) * var(--motion-stagger));
}
[data-inview='2'] {
  --reveal-step: 1;
}
[data-inview='3'] {
  --reveal-step: 2;
}
[data-inview='4'] {
  --reveal-step: 3;
}
[data-inview='5'] {
  --reveal-step: 4;
}
[data-inview='6'] {
  --reveal-step: 5;
}
.faq[data-inview],
.cta-panel[data-inview] {
  --reveal-step: 0;
}

/* ---------- Pricing: the intro and its notes beside a raised, green-rimmed calculator, with light behind the card.
   Under 1024 px one column: intro, calculator (its founding footer inside), the left-ruled notes, then the price list;
   from 600 px that column is 640 px, centred (P1-5, C's iPad column; at 900-1023 px a second column would squeeze the
   calculator to 419-480 px, wrapping the vet field and the founding summary). From 1024 px the intro and notes stick
   beside the calculator (B's sticky aside). The wash is light, not a stain (P2-1): a warm white bloom centred on the calculator, brighter than
   the page and gone well inside the section's sides and foot. ---------- */
.pricing-section {
  --pricing-light-at: 50% 620px;
  background:
    radial-gradient(min(820px, 90%) 640px at var(--pricing-light-at), var(--wash-light) 0%,
      color-mix(in srgb, var(--wash-light) 72%, transparent) 30%,
      color-mix(in srgb, var(--wash-light) 28%, transparent) 62%, transparent 100%),
    var(--surface);
}
.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.pricing-layout > * {
  min-width: 0;
}
.pricing-aside,
.pricing-sticky {
  display: contents;
}
.pricing-intro {
  order: 0;
}
.pricing-intro h2 em {
  color: var(--primary-600);
}
.pricing-main {
  order: 1;
}
/* C's notes block: the price rule, the seat note and the AI line under one 2 px rule at the left (P2-11).
   It comes before the calculator in the DOM (the desktop aside) but sits under it here, so it must never be the
   scroll anchor: otherwise opening the founding offer moves the notes down and the browser scrolls the page by the
   same amount (measured: 637 px on a 390 px phone, Chromium and WebKit). */
.pricing-context {
  order: 2;
  padding-left: 16px;
  border-left: 2px solid var(--border);
  overflow-anchor: none;
}
.full-price-list {
  order: 3;
}
@media (min-width: 600px) and (max-width: 1023.98px) {
  .pricing-intro,
  .pricing-main,
  .pricing-context,
  .full-price-list {
    width: 100%;
    max-width: 640px;
    justify-self: center;
  }
}
/* The 6 px top accent is a background layer, not a clipped pseudo-element: the calculator must not clip its
   own overflow, because the vet-count list opens upward (out of the card) when the trigger is near the
   bottom of the viewport. The founding footer rounds its own bottom corners for the same reason. */
.price-calculator {
  position: relative;
  background:
    linear-gradient(90deg, var(--primary-600), color-mix(in srgb, var(--primary-600) 45%, var(--mint))) top / 100% 6px
      no-repeat,
    var(--surface-raised);
  border: 1px solid color-mix(in srgb, var(--primary-600) 28%, var(--border));
  border-radius: var(--r-card);
  box-shadow: var(--elev-2);
}
.price-calculator-body {
  padding: 34px 32px 28px;
}
.pricing-controls,
.vet-field,
.vet-field > * {
  min-width: 0;
}
.pricing-controls {
  display: grid;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.vet-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vet-field label {
  font-size: 14px;
  font-weight: var(--w-heading);
}
.themed-select {
  position: relative;
  min-width: 0;
  max-width: 100%;
  width: 194px;
  font-size: 16px;
}
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 48px;
  padding: 11px 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-control);
  text-align: left;
  font-weight: var(--w-ui);
  line-height: 1.5;
}
.select-trigger[aria-expanded='true'] {
  border-color: var(--primary-600);
}
@media (hover: hover) {
  .select-trigger:hover {
    border-color: var(--primary-600);
  }
}
.select-trigger > span:first-child {
  min-width: 0;
}
.select-chevron {
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--motion-base) var(--ease-in-out);
}
.select-trigger[aria-expanded='true'] .select-chevron {
  transform: translateY(2px) rotate(225deg);
}
.select-options {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  /* Room for the sticky header on short screens, in either opening direction. */
  max-height: min(320px, calc(50vh - 90px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--elev-2);
}
.opens-up .select-options {
  top: auto;
  bottom: calc(100% + 8px);
}
.select-options [role='option'] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 400;
  line-height: 1.5;
}
.select-options [role='option']::after {
  content: '';
  flex: none;
  width: 14px;
}
.select-options [aria-selected='true']::after {
  content: '✓';
}
.select-options [data-active='true'] {
  background: var(--primary-600);
  color: var(--on-primary);
}
/* The billing switch: a thumb slides under the pressed option (app.js mirrors the state in data-active-billing). */
.billing-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--surface-sunken);
  border-radius: 10px;
}
.billing-switch::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 6px);
  height: calc(100% - 8px);
  border-radius: var(--r-control);
  background: var(--surface-raised);
  box-shadow: var(--elev-1);
  transition: transform var(--motion-base) var(--ease-in-out);
}
.billing-switch[data-active-billing='yearly']::before {
  transform: translateX(calc(100% + 4px));
}
.billing-switch button {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 48px;
  padding: 10px 8px;
  border: 0;
  border-radius: var(--r-control);
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  font-weight: var(--w-ui);
}
.billing-switch button[aria-pressed='true'] {
  color: var(--text);
}
.billing-switch:not([data-active-billing]) button[aria-pressed='true'] {
  background: var(--surface-raised);
  box-shadow: var(--elev-1);
}
@media (hover: hover) {
  .billing-switch button:hover:not([aria-pressed='true']) {
    color: var(--text);
  }
}
.billing-saving {
  display: inline-block;
  margin-left: 7px;
  font-size: var(--fs-micro);
  color: var(--primary-600);
}
.price-result {
  padding: 24px 0 20px;
}
.price-for {
  margin-bottom: 8px;
  font-size: var(--fs-caption);
  color: var(--text-2);
}
.price-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px;
  line-height: 1.1;
}
.price-value strong {
  font-size: clamp(40px, 32px + 1.4vw, 56px);
  font-weight: var(--w-ui);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.price-currency {
  font-size: 16px;
}
#price-period {
  font-size: 14px;
  color: var(--text-2);
}
/* The billing line and the saving line share a reserved slot of two caption lines, so switching billing never moves the
   page. C's shorter yearly strings (P1-13) keep each line to one line from 320 to 1920 px (measured with
   tools/pricemeta.mjs, Chromium and WebKit), so phones no longer reserve four lines (a 38 px gap under the price). */
.price-meta {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 42px;
}
.price-billing,
.price-saving {
  margin: 0;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--text-2);
}
.price-saving {
  color: var(--primary-600);
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
.price-saving:not([hidden]) {
  animation: fade-up var(--motion-base) var(--ease-out) both;
}
.included-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  font-size: 14px;
}
.included-list li {
  position: relative;
  padding-left: 22px;
}
.included-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-600);
}
.price-cta {
  display: flex;
  width: 100%;
}
.price-note {
  margin: 12px 0 0;
  font-size: var(--fs-micro);
  color: var(--text-2);
}
.price-calculator-body > .price-note {
  text-align: center;
  text-wrap: balance;
}
.pricing-rule {
  max-width: var(--measure-note);
  margin: 0;
  font-size: var(--fs-ui);
  line-height: 1.6;
  text-wrap: pretty;
}
.pricing-seat-note {
  max-width: var(--measure-note);
  margin: 10px 0 0;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--text-2);
}
/* The founding offer is the calculator's footer. */
.founding-offer {
  border-top: 1px solid var(--border);
  border-radius: 0 0 calc(var(--r-card) - 1px) calc(var(--r-card) - 1px);
  background: var(--primary-50);
}
.founding-offer > summary {
  flex-wrap: wrap;
  min-height: 64px;
  padding: 14px 32px;
}
.founding-offer > summary > span:first-child {
  flex: 1;
}
.founding-tag {
  padding: 5px 10px;
  border-radius: 25px;
  background: var(--surface-raised);
  color: var(--primary-600);
  font-size: var(--fs-micro);
  font-weight: var(--w-ui);
  box-shadow: var(--elev-1);
}
.founding-body {
  padding: 2px 32px 26px;
  font-size: var(--fs-ui);
}
.founding-body h3 {
  margin: 22px 0 10px;
  font-size: 18px;
}
.founding-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin: 16px 0 0;
  font-size: 14px;
}
.founding-price strong {
  font-size: 26px;
  font-weight: var(--w-ui);
  font-variant-numeric: tabular-nums;
}
.founding-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
}
.founding-timeline li {
  padding: 12px 10px;
  border-radius: var(--r-control);
  background: var(--surface-raised);
  font-size: var(--fs-caption);
}
.founding-timeline span {
  display: block;
  margin-bottom: 4px;
  font-size: var(--fs-micro);
  color: var(--text-2);
}
.founding-timeline strong {
  font-weight: var(--w-ui);
}
.offer-terms,
.offer-smallprint p {
  font-size: var(--fs-caption);
  color: var(--text-2);
}
.offer-smallprint {
  border-top: 1px solid var(--border);
}
.offer-smallprint summary {
  font-size: var(--fs-caption);
}
.full-price-list .disclosure-body {
  padding-top: 20px;
}
.table-wrap {
  margin: 0 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface-raised);
  box-shadow: var(--elev-1);
  overflow: hidden;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.price-table th,
.price-table td {
  padding: 14px 16px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 0;
}
.price-table th:first-child {
  text-align: left;
}
.price-table thead {
  background: var(--primary-50);
}
.price-table th {
  font-weight: var(--w-heading);
}
.col-founding {
  color: var(--primary-600);
}
.table-note {
  max-width: var(--measure-note);
  margin: 0 auto;
  font-size: var(--fs-caption);
  color: var(--text-2);
  text-align: center;
}
@media (max-width: 599.98px) {
  .price-calculator-body {
    padding: 26px 20px 22px;
  }
  .vet-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .themed-select {
    width: 100%;
  }
  .billing-saving {
    display: block;
    margin: 2px 0 0;
  }
  .pricing-controls {
    gap: 16px;
  }
  .founding-offer > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 8px 16px;
    padding: 14px 20px;
  }
  .founding-offer > summary > span:first-child {
    grid-column: 1;
  }
  .founding-tag {
    grid-column: 1;
    justify-self: start;
  }
  .founding-offer > summary::after {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .founding-body {
    padding: 2px 20px 22px;
  }
  .founding-timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .founding-timeline li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
  .founding-timeline span {
    margin-bottom: 0;
  }
  .table-wrap {
    padding: 0 16px;
  }
  .price-table thead {
    display: none;
  }
  .price-table tbody,
  .price-table tr,
  .price-table td,
  .price-table th {
    display: block;
  }
  .price-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .price-table tr:last-child {
    border-bottom: 0;
  }
  .price-table th,
  .price-table td {
    padding: 5px 0;
    border: 0;
  }
  .price-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .price-table td::before {
    content: attr(data-label);
    max-width: 70%;
    text-align: left;
    color: var(--text-2);
  }
}
@media (min-width: 1024px) {
  .pricing-section {
    --pricing-light-at: 70% 400px;
  }
  .pricing-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    grid-template-areas:
      'aside calc'
      'list list';
    gap: 56px 80px;
  }
  .pricing-aside {
    display: block;
    grid-area: aside;
    align-self: stretch;
  }
  .pricing-sticky {
    display: block;
    position: sticky;
    top: calc(var(--nav-height) + 24px);
  }
  .pricing-context {
    margin-top: 40px;
  }
  .pricing-main {
    grid-area: calc;
  }
  .full-price-list {
    grid-area: list;
  }
}

/* ---------- Film: the chapter green, the poster to the container edges, pills on the poster ---------- */
/* The block carries the closing panel's top light in both schemes (P1-8 lit it in dark; P2-12 lights it in light too, so
   the ivory-to-green seam above the film reads as light on the green, as the hero and the closing panel do, instead of
   a flat cut). In dark it is --green-block-glow itself; the hairline at its foot is dark only (tokens in styles.css). */
.film-section {
  background:
    radial-gradient(900px 500px at 50% -100px, var(--hero-light), transparent 62%),
    var(--chapter-gradient);
  box-shadow: inset 0 -1px 0 var(--film-seam);
}
.film-container {
  /* 960 CSS px uses 1920 device pixels on a 2x display. */
  max-width: calc(960px + 2 * var(--gutter));
}
.film-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 28px;
}
.film-heading > * {
  min-width: 0;
}
.film-heading .section-lede {
  max-width: 30em;
  margin: 0;
}
.film-figure {
  position: relative;
  margin: 0;
}
.film-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--film-floor);
  box-shadow:
    var(--elev-green-2),
    0 0 0 1px var(--green-line);
}
.film-stage video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.film-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* The overlay (poster, play pill) leaves by opacity once the film starts; the chapter pills then drop under the stage. */
.film-poster,
.film-play {
  transition:
    opacity var(--motion-base) var(--ease-out),
    visibility 0s linear var(--motion-base);
}
.film-figure[data-playing='true'] .film-poster,
.film-figure[data-playing='true'] .film-play {
  opacity: 0;
  visibility: hidden;
}
.film-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: 100%;
  padding: 28px;
  border: 0;
  background: linear-gradient(transparent 52%, var(--scrim) 100%);
  color: var(--on-green-strong);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.film-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 24px 7px 7px;
  border: 1px solid var(--green-line-strong);
  border-radius: 999px;
  background: var(--scrim-pill);
  box-shadow: var(--elev-green-1);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}
.film-play-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--on-mint);
}
.film-play-icon svg {
  width: 24px;
  height: 24px;
  margin-left: 2px;
  fill: currentColor;
}
@media (hover: hover) {
  .film-play:hover .film-play-icon {
    transform: scale(1.06);
    background: var(--mint-hover);
  }
}
.film-play-copy {
  display: grid;
  gap: 1px;
}
.film-play-label {
  font-size: 17px;
  font-weight: var(--w-heading);
  line-height: 1.3;
}
.film-play-duration {
  font-size: var(--fs-caption);
  color: var(--on-green-2);
}
.film-play:focus-visible {
  outline: 3px solid var(--on-green-strong);
  outline-offset: -6px;
}
/* The stage is positioned, so its 100 px shadow paints after (over) any non-positioned content below it: the chapter
   pills under the stage (phones, tablets and while playing) and the meta row are positioned too, so they sit above the
   shadow and the active pill and the trial button keep their mint (under it they rendered visibly greyed). */
.film-chapters {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.film-chapters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 14px;
  border: 1px solid var(--green-line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--on-green-2);
  font-size: var(--fs-caption);
  font-weight: var(--w-ui);
  line-height: 1.2;
  text-align: left;
}
.film-chapter-time {
  font-variant-numeric: tabular-nums;
  color: var(--on-green-3);
}
@media (hover: hover) {
  .film-chapters button:hover:not([aria-current]) {
    color: var(--on-green);
    border-color: var(--on-green-3);
    background: var(--primary-50);
  }
}
.film-chapters button[aria-current] {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--on-mint);
}
/* 0.8, not 0.72: on the dark scheme's primary-tone pill the time must still clear 4.5:1 (5.4:1 at 0.8). */
.film-chapters button[aria-current] .film-chapter-time {
  color: inherit;
  opacity: 0.8;
}
.film-error {
  margin: 16px 0 0;
  font-size: 14px;
}
/* Under the stage: the duration with the transcript link, and the one trial button. */
.film-meta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 28px;
  align-items: start;
  margin-top: 20px;
}
.film-meta > * {
  min-width: 0;
}
.film-transcript {
  color: var(--on-green-2);
  font-size: var(--fs-caption);
}
.film-transcript > summary {
  justify-content: flex-start;
  gap: 4px;
  min-height: 52px;
  padding: 0;
  font-size: var(--fs-caption);
  font-weight: var(--w-ui);
}
.film-transcript > summary::after {
  width: auto;
  margin-left: 2px;
  font-size: 18px;
}
.film-transcript-link {
  color: var(--on-green-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.film-transcript-body {
  max-width: 720px;
  padding: 2px 0 8px;
}
.film-transcript p {
  margin: 12px 0 0;
  line-height: 1.75;
}
.film-start {
  justify-self: end;
}
@media (max-width: 899.98px) {
  .film-figure {
    margin: 0 calc(-1 * var(--gutter));
  }
  .film-stage {
    border-radius: 0;
  }
  .film-chapters {
    padding: 0 var(--gutter);
  }
}
@media (max-width: 599.98px) {
  .film-play {
    padding: 16px;
  }
  .film-play-pill {
    gap: 10px;
    padding: 5px 16px 5px 5px;
  }
  .film-play-icon {
    width: 44px;
    height: 44px;
  }
  .film-play-icon svg {
    width: 20px;
    height: 20px;
  }
  .film-play-label {
    font-size: 15px;
  }
  .film-play-duration {
    font-size: var(--fs-micro);
  }
  .film-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .film-start {
    order: -1;
    width: 100%;
    justify-self: stretch;
    margin-bottom: 8px;
  }
}
@media (min-width: 900px) {
  .film-heading {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 48px;
  }
  .film-figure .film-chapters {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 2;
    justify-content: flex-end;
    max-width: calc(100% - 56px);
    margin: 0;
  }
  .film-figure .film-chapters button {
    color: var(--on-green);
    background: var(--scrim-pill);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
  }
  .film-figure .film-chapters button[aria-current] {
    background: var(--mint);
    color: var(--on-mint);
  }
  .film-figure[data-playing='true'] .film-chapters {
    position: relative;
    inset: auto;
    justify-content: flex-start;
    margin-top: 16px;
  }
  .film-figure[data-playing='true'] .film-chapters button {
    color: var(--on-green-2);
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .film-figure[data-playing='true'] .film-chapters button[aria-current] {
    background: var(--mint);
    color: var(--on-mint);
  }
}

/* ---------- Everything else is included: six tiles with glyphs, four more behind the disclosure ---------- */
.included-heading {
  max-width: 650px;
}
.features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.feature {
  padding: 26px 24px 24px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--elev-1);
}
.feature-glyph,
.trust-glyph {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary-600);
}
.feature-glyph svg,
.trust-glyph svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 {
  margin-bottom: 8px;
  font-size: 19px;
}
.feature p {
  margin: 0;
  font-size: var(--fs-ui);
  color: var(--text-2);
}
.feature-disclosure {
  margin-top: 28px;
}
.features-more {
  margin-top: 20px;
  gap: 12px;
}
.feature-compact {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
}
/* Under 240 px of layout (a phone zoomed to about 200 %) the glyph goes above the text, which then fits. */
@media (max-width: 239.98px) {
  .feature-compact {
    flex-direction: column;
  }
}
.feature-compact .feature-glyph {
  width: 40px;
  height: 40px;
  margin: 0;
}
.feature-compact .feature-glyph svg {
  width: 22px;
  height: 22px;
}
.feature-compact h3 {
  margin-bottom: 4px;
  font-size: var(--fs-body);
}
.feature-compact p {
  font-size: 14px;
}
@media (min-width: 600px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .features-more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
  }
}

/* ---------- Getting started: the page with light at the right, the photograph bleeding to the left edge from 900 px.
   The bloom's ellipse ends inside the section's top and foot (4 % to 96 % of its height), so no edge of it meets the
   sections above and below (P1-14: B's wash ran past the top and left a 1 px step across the right half). ---------- */
.getting-started {
  background:
    radial-gradient(48% 46% at 100% 50%, var(--wash-light) 0%,
      color-mix(in srgb, var(--wash-light) 72%, transparent) 30%,
      color-mix(in srgb, var(--wash-light) 28%, transparent) 62%, transparent 100%),
    var(--surface);
  overflow-x: clip;
}
.adoption-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}
.adoption-grid > * {
  min-width: 0;
}
.care-context {
  margin: 0;
}
.care-context img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: var(--r-stage);
  background: var(--wash-warm);
  box-shadow: var(--elev-2);
  filter: var(--photo-filter);
}
/* The photograph band near the top shows the whole scene; below 900 px this column could only repeat that landscape
   framing, so the second use is the tall, vet-and-dog crop beside the steps from 900 px only (P1-9). */
@media (max-width: 899.98px) {
  .care-context {
    display: none;
  }
}
.adoption-copy {
  max-width: 660px;
}
.adoption-steps {
  display: grid;
  gap: 22px;
  margin-top: 32px;
}
.adoption-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.adoption-steps li > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-600);
  font-size: var(--fs-caption);
  font-weight: var(--w-heading);
  font-variant-numeric: tabular-nums;
}
.adoption-steps h3 {
  margin-bottom: 4px;
  font-size: 19px;
}
.adoption-steps p {
  margin: 0;
  font-size: var(--fs-ui);
  line-height: 1.6;
  color: var(--text-2);
}
.adoption-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 28px 0 0;
  font-size: var(--fs-caption);
}
@media (min-width: 900px) {
  .adoption-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 64px;
    align-items: start;
  }
  .care-context {
    margin-left: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--content-max)) / 2)));
  }
  .care-context img {
    aspect-ratio: 4 / 5;
    object-position: 28% 38%;
    border-radius: 0 var(--r-stage) var(--r-stage) 0;
  }
}
@media (min-width: 1200px) {
  .adoption-grid {
    align-items: stretch;
  }
  .care-context img {
    height: 100%;
    min-height: 560px;
    aspect-ratio: auto;
  }
}

/* ---------- Your records stay yours: three raised cards with glyphs ---------- */
.trust-heading {
  max-width: 560px;
  margin-bottom: 36px;
}
.trust-points {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.trust-points article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 6px 18px;
  align-content: start;
  padding: 24px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--elev-1);
}
.trust-points .trust-glyph {
  grid-row: 1 / span 2;
  margin: 0;
}
.trust-points h3 {
  font-size: 19px;
}
.trust-points p {
  margin: 0;
  font-size: 16px;
  color: var(--text-2);
}
/* Under 240 px of layout (a phone zoomed to about 200 %) the glyph goes above the text, as on desktop. */
@media (max-width: 239.98px) {
  .trust-points article {
    grid-template-columns: minmax(0, 1fr);
  }
  .trust-points .trust-glyph {
    grid-row: auto;
    margin-bottom: 12px;
  }
}
@media (min-width: 900px) {
  .trust-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .trust-points article {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 28px 24px 26px;
  }
  .trust-points .trust-glyph {
    grid-row: auto;
    margin-bottom: 18px;
  }
  .trust-points h3 {
    margin-bottom: 8px;
  }
}

/* ---------- Questions: raised disclosures on the 720 px measure, two columns from 1200 px ---------- */
#faq h2 {
  margin-bottom: 32px;
}
.faq-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.faq-col {
  display: contents;
}
.faq {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--elev-1);
}
.faq > summary {
  min-height: 60px;
  padding: 16px 20px;
  border-radius: var(--r-card);
  font-size: 16px;
}
.faq .disclosure-body {
  padding: 0 20px 20px;
}
.faq p {
  margin: 0;
  padding-right: 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}
/* The support address may break rather than push a narrow page with enlarged text sideways. */
.faq a {
  overflow-wrap: anywhere;
}
@media (min-width: 1200px) {
  .container.faq-container {
    max-width: var(--content-max);
  }
  .faq-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
  }
  .faq-col {
    display: grid;
    gap: 12px;
  }
}

/* ---------- Closing panel: the chapter green inside the ivory page ---------- */
.cta-panel {
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  border-radius: var(--r-stage);
  background:
    radial-gradient(900px 500px at 50% -20%, var(--hero-light), transparent 62%),
    var(--chapter-gradient);
  box-shadow: var(--elev-green-2);
  text-align: center;
}
.cta-panel h2 {
  max-width: 680px;
  margin: 0 auto;
  color: var(--on-green-strong);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin: 32px 0 20px;
}
.cta-row.center {
  justify-content: center;
}
.cta-panel .btn-ghost {
  color: var(--on-green);
  border-color: var(--green-line-strong);
}
.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  margin: 0;
  font-size: var(--fs-caption);
  color: var(--text-2);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: var(--sp-8) 0;
  font-size: var(--fs-caption);
  color: var(--text-2);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 15px;
}
.footer-brand .brand-mark {
  width: 28px;
  height: 28px;
}
.footer-text {
  margin: 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-left: auto;
}
.footer-links {
  align-items: center;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-caption);
}
@media (max-width: 599.98px) {
  .footer-grid {
    gap: 8px 16px;
  }
  .footer-links {
    flex-basis: 100%;
    gap: 4px 16px;
    margin: 4px 0 0;
  }
  .footer-link-wide {
    flex-basis: 100%;
  }
}
