.footnotes-page {
  min-height: 100vh;
  overflow-x: hidden;
}

.footnotes-shell {
  width: min(100% - 36px, 1120px);
  margin: 0 auto;
}

.footnotes-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
}

.footnotes-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footnotes-brand img:first-child {
  border-radius: 999px;
}

.footnotes-brand img:last-child {
  width: auto;
  height: 20px;
}

.footnotes-home-link,
.footnotes-breadcrumb a,
.footnote-article-end a,
.footnotes-footer a {
  color: var(--text);
  text-decoration-color: rgba(22, 27, 34, 0.28);
  text-underline-offset: 0.22em;
}

.footnotes-home-link,
.footnote-article-end a,
.footnotes-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footnotes-home-link {
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.88rem;
  text-decoration: none;
}

.footnotes-home-link:hover,
.footnotes-home-link:focus-visible,
.footnotes-breadcrumb a:hover,
.footnote-article-end a:hover,
.footnotes-footer a:hover {
  text-decoration-color: currentColor;
}

.footnotes-home-link:hover,
.footnotes-home-link:focus-visible {
  border-color: var(--text);
  background: #f8fafc;
}

.footnotes-index-hero {
  max-width: 760px;
  padding: clamp(68px, 11vw, 128px) 0 clamp(52px, 8vw, 92px);
}

.footnotes-kicker {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footnotes-index-hero h1,
.footnote-article-header h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(2.8rem, 8vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.footnotes-index-hero > p:last-child {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.footnotes-index {
  padding-bottom: clamp(78px, 12vw, 140px);
}

.footnotes-index-list {
  border-top: 1px solid var(--line-strong);
}

.footnotes-index-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: background-color 160ms ease, padding 160ms ease;
}

.footnotes-index-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: var(--bg-surface);
}

.footnotes-index-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.footnotes-index-row:hover .footnotes-index-media img,
.footnotes-index-row:focus-visible .footnotes-index-media img {
  transform: scale(1.025);
}

/* The finishing article's thumbnail is a frame of a vertical video with black
   side bars baked into the 16:9 file (content spans the middle 45%). In the
   card thumbnails, zoom onto the picture so no black band shows (brand rule:
   no black surfaces). The in-article figure keeps the full frame. */
.footnotes-index-media img[src*="top-cover-video-shell"],
.home-footnote-media img[src*="top-cover-video-shell"] {
  transform: scale(2.3);
}

.footnotes-index-row:hover .footnotes-index-media img[src*="top-cover-video-shell"],
.home-footnote-card:hover .home-footnote-media img[src*="top-cover-video-shell"] {
  transform: scale(2.36);
}

.footnotes-index-row:hover,
.footnotes-index-row:focus-visible {
  padding-right: 12px;
  padding-left: 12px;
  background: rgba(255, 255, 255, 0.56);
  outline: none;
}

.footnotes-index-row time {
  padding-top: 5px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.footnotes-index-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.footnotes-index-title {
  font-size: clamp(1.24rem, 2.8vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.footnotes-index-description {
  max-width: 680px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.footnotes-index-arrow {
  font-size: 1.3rem;
  line-height: 1;
  transform: translateY(4px);
  transition: transform 160ms ease;
}

.footnotes-index-row:hover .footnotes-index-arrow,
.footnotes-index-row:focus-visible .footnotes-index-arrow {
  transform: translate(5px, 4px);
}

.footnotes-empty {
  display: grid;
  gap: 5px;
  padding: 28px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.footnotes-empty p {
  margin: 0;
}

.footnotes-empty p:last-child {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footnotes-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footnote-article {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(58px, 9vw, 104px) 0 clamp(80px, 12vw, 144px);
}

.footnote-article-header {
  padding-bottom: clamp(46px, 7vw, 72px);
  border-bottom: 1px solid var(--line-strong);
}

.footnote-article-header h1 {
  font-size: clamp(2.5rem, 7vw, 5.8rem);
}

.footnote-deck {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.1rem, 2.1vw, 1.4rem);
  line-height: 1.55;
}

.footnote-meta {
  margin: 26px 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.footnote-article-body {
  padding: clamp(44px, 7vw, 72px) 0;
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
  line-height: 1.76;
  overflow-wrap: anywhere;
}

.footnote-article-body > * {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.footnote-article-body p,
.footnote-article-body ul,
.footnote-article-body ol,
.footnote-article-body blockquote,
.footnote-article-body figure,
.footnote-article-body .footnote-resource-link,
.footnote-article-body .footnote-callout {
  margin-top: 0;
  margin-bottom: 28px;
}

.footnote-article-body h2 {
  margin-top: 64px;
  margin-bottom: 20px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.footnote-article-body h3 {
  margin-top: 44px;
  margin-bottom: 16px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.25;
  font-weight: 500;
}

.footnote-article-body a {
  text-decoration-color: rgba(22, 27, 34, 0.34);
  text-underline-offset: 0.18em;
}

.footnote-article-body a:hover {
  text-decoration-color: currentColor;
}

.footnote-article-body li + li {
  margin-top: 9px;
}

.footnote-article-body blockquote {
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--accent);
  color: var(--text-soft);
  font-size: 1.16em;
}

.footnote-article-body blockquote p {
  margin: 0;
}

.footnote-article-body cite {
  display: block;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-style: normal;
}

.footnote-article-body figure {
  max-width: 860px;
}

.footnote-article-body figure img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

.footnote-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--bg-surface);
}

.footnote-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* "Tap for sound" pill (shared/footnote-video.js): the embeds load muted and
   this is the one way to switch sound on besides YouTube's own speaker icon.
   Left edge, just under YouTube's title strip, so it covers neither that
   strip nor the control bar and seek bar at the bottom. */
.footnote-sound {
  position: absolute;
  left: 12px;
  top: 72px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--accent-hover, #bcc20a), 0 6px 20px rgba(0, 0, 0, 0.18);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.footnote-sound[hidden] {
  display: none;
}

.footnote-sound:focus-visible {
  outline: 3px solid var(--accent-hover, #bcc20a);
  outline-offset: 3px;
}

.footnote-video-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footnote-video-caption a {
  flex: 0 0 auto;
  color: var(--text);
}

.footnote-faq-list {
  border-top: 1px solid var(--line-strong);
}

.footnote-faq details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.footnote-faq summary {
  cursor: pointer;
  font-weight: 500;
  line-height: 1.45;
}

.footnote-faq details p {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 0.95em;
}

.footnote-article-body figcaption {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.footnote-callout {
  padding: 24px 26px;
  border-left: 4px solid var(--text);
  background: var(--accent);
  color: var(--text);
}

.footnote-callout h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: 0;
}

.footnote-callout p {
  margin: 0;
}

.footnote-resource-link {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  text-decoration: none;
}

/* "Book a Demo" resource links carry a small calendar icon (2026-11-10), so
   it reads as booking a time. Drawn as a mask so it takes the text colour. */
.footnote-resource-link[href$="/get-demo"] > span:first-child::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
  vertical-align: -0.12em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='2.5'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='2.5'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.footnote-booking-cta {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin: 0 auto clamp(44px, 7vw, 72px);
  padding: clamp(30px, 5vw, 52px);
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(235, 242, 19, 0.2) 0%, rgba(235, 242, 19, 0) 55%),
    linear-gradient(160deg, #fbfaf7 0%, #f2eee8 100%);
  color: var(--text);
}

.footnote-booking-cta > * {
  max-width: 650px;
  margin: 0;
}

.footnote-booking-kicker {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footnote-booking-cta h2 {
  font-size: clamp(1.9rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.footnote-booking-cta > p:not(.footnote-booking-kicker):not(.footnote-booking-note) {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.6;
}

.footnote-booking-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.footnote-booking-action:hover,
.footnote-booking-action:focus-visible {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: var(--text);
  outline: none;
  transform: translateY(-2px);
}

.footnote-booking-note {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.footnote-link-description {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 400;
}

.footnote-article-end {
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.footnotes-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (max-width: 680px) {
  .footnotes-shell {
    width: min(100% - 40px, 1120px);
  }

  .footnotes-topbar {
    min-height: 72px;
  }

  .footnote-video-caption {
    display: grid;
    gap: 6px;
  }

  .footnote-faq details {
    padding: 16px 0;
  }

  .footnotes-brand img:last-child {
    height: 17px;
    max-width: 160px;
  }

  .footnotes-index-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 22px 0;
  }

  .footnotes-index-media {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .footnotes-index-row time {
    grid-column: 1 / -1;
    padding: 0;
  }

  .footnotes-index-description {
    font-size: 0.9rem;
  }

  .footnote-article {
    padding-top: 50px;
  }

  .footnote-article-header h1 {
    font-size: clamp(2.1rem, 10vw, 3.4rem);
    line-height: 1.02;
    text-wrap: balance;
  }

  .footnote-deck {
    margin-top: 22px;
  }

  .footnote-article-body {
    line-height: 1.68;
  }

  .footnote-article-body > * {
    width: 100%;
  }

  .footnote-callout {
    padding: 20px;
  }

  .footnote-booking-cta {
    gap: 14px;
    padding: 26px 22px;
    border-radius: 14px;
  }

  .footnote-booking-action {
    width: 100%;
  }

  .footnotes-footer {
    align-items: flex-start;
    padding: 18px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footnotes-index-row,
  .footnotes-index-arrow,
  .footnotes-index-media img,
  .footnote-booking-action {
    transition: none;
  }
}
