.ex {
  --ex-tint: color-mix(in srgb, var(--main) 10%, transparent);
  --ex-ring: color-mix(in srgb, var(--main) 30%, transparent);
}

.examples-topline .crumbs { margin: 0; font-size: 12px; }
.examples-topline .crumbs a, .examples-topline > a { display: inline-flex; align-items: center; min-height: 44px; }
.examples-topline > a { gap: 8px; color: var(--link); font-size: 13px; text-underline-offset: 4px; }

.ex-wide { width: min(100%, 1280px); margin-left: max(0px, calc((100% - var(--side-w) - 1120px) / 2)); }
.ex-hero { padding: 0 var(--home-gutter) clamp(36px, 4vw, 56px); }
.ex-hero__intro { padding-top: clamp(40px, 6vh, 72px); text-align: center; }
.home .ex-hero h1 { margin: 0 auto 18px; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.05em; }
.home .ex-hero .lead { max-width: 44ch; margin: 0 auto; }

.ex-chip, .ex-tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.ex-chip { background: var(--bg-secondary); color: var(--secondary); }
.ex-tag { background: var(--ex-tint); color: var(--main); }

.ex-show { padding: 0 var(--home-gutter) clamp(80px, 9vw, 120px); overflow-x: clip; }
.ex-show__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; }
.home .ex-show__title { max-width: 46ch; margin: 0; color: var(--secondary); font-size: 15px; font-weight: 400; line-height: 1.6; letter-spacing: 0; text-wrap: pretty; }
.ex-show__count { flex: none; color: var(--secondary); font-size: 13px; }

.ex-track { position: relative; display: flex; gap: 20px; margin: 0 calc(-1 * var(--home-gutter)) 0 0; margin-bottom: -22px; padding: 6px var(--home-gutter) 64px 0; overflow-x: auto; overscroll-behavior-x: contain; list-style: none; scroll-snap-type: x mandatory; scrollbar-width: none; counter-reset: slide; cursor: grab; }
.ex-track::-webkit-scrollbar { display: none; }
@media (min-width: 1500px) { .ex-track { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 160px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 160px), transparent); } }
.ex-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.home .ex-slide { flex: 0 0 min(86%, 1040px); margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--home-surface); box-shadow: inset 0 1px 0 var(--glass-shine), 0 24px 44px -34px #1a3a2659; scroll-snap-align: start; counter-increment: slide; transform-origin: left center; transition: opacity .6s var(--ease-out), transform .7s var(--ease-out), box-shadow .6s var(--ease-out); }
.ex-show.is-live .ex-slide:not(.is-active) { opacity: .5; transform: scale(.975); }
.home .ex-slide.is-active { box-shadow: inset 0 1px 0 var(--glass-shine), 0 28px 50px -34px #1a3a2673; }
:root[data-theme="dark"] .home .ex-slide, :root[data-theme="dark"] .home .ex-slide.is-active { box-shadow: inset 0 1px 0 var(--glass-shine), 0 28px 50px -34px #000000b3; }
.ex-slide__shot { position: relative; display: block; aspect-ratio: 2148 / 900; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-secondary); }
.ex-shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform 1.1s var(--ease-out); -webkit-user-drag: none; }
.ex-shot--dark { display: none; }
:root[data-theme="dark"] .ex-shot--light { display: none; }
:root[data-theme="dark"] .ex-shot--dark { display: block; }
.ex-slide__shot:hover .ex-shot { transform: scale(1.015); }
.ex-slide__cap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px clamp(24px, 3vw, 48px); padding: clamp(20px, 2.4vw, 32px); }
.ex-slide__lead, .ex-slide__more { min-width: 0; }
.home .ex-slide__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.ex-slide__n::before { content: counter(slide, decimal-leading-zero); margin-right: 4px; color: var(--main); font-size: 13px; font-weight: 600; font-variant-numeric: lining-nums proportional-nums; }
.home .ex-slide__name { margin: 0 0 8px; color: var(--text); font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; line-height: 1.15; letter-spacing: -.04em; }
.home .ex-slide__note { margin: 0 0 22px; color: var(--secondary); font-size: 15px; line-height: 1.6; }
.home .ex-slide__text { margin: 0 0 18px; color: var(--secondary); font-size: 14.5px; line-height: 1.75; text-wrap: pretty; }
.ex-slide__text code { color: var(--text); font-size: .88em; }
.home .ex-slide__file { margin: 14px 0 0; overflow: hidden; color: var(--secondary); font-family: var(--font-mono); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.ex-stats { display: grid; grid-template-columns: repeat(6, auto); justify-content: space-between; gap: 4px 12px; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.ex-stats div { min-width: 0; }
.ex-stats dt { color: var(--secondary); font-size: 11px; white-space: nowrap; }
.ex-stats dd { margin: 2px 0 0; color: var(--text); font-size: 18px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: lining-nums proportional-nums; }
.ex-open { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; background: var(--action-bg); box-shadow: inset 0 1px 0 #ffffff26, 0 2px 3px var(--glass-shadow); color: var(--action-ink); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color .2s var(--ease-out); }
.ex-open:hover { background: var(--action-hover); }
.ex-open:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ex-ring); }
.ex-open span { transition: transform .3s var(--ease-out); }
.ex-open:hover span { transform: translateX(3px); }

.ex-controls { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.ex-pills { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--home-surface); }
.ex-pill { min-height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--secondary); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color .3s var(--ease-out), color .3s var(--ease-out); }
.ex-pill:hover { color: var(--text); }
.ex-pill[aria-pressed="true"] { background: var(--ex-tint); color: var(--main); }
.ex-pill:focus-visible, .ex-arrow:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ex-ring); }
.ex-arrows { display: inline-flex; gap: 8px; }
.ex-arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--home-surface); color: var(--text); cursor: pointer; transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out), opacity .25s var(--ease-out); }
.ex-arrow:hover { border-color: var(--border-hover); }
.ex-arrow:disabled { opacity: .35; cursor: default; }
.ex-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.home.ex .prose { width: auto; max-width: none; margin: 0; padding: 0; }
.home.ex .prose > .prose__answer { width: calc(100% - var(--side-w) - 2 * var(--home-gutter)); max-width: 1120px; margin: 0 auto 0 max(var(--home-gutter), calc((100% - var(--side-w) - 1120px) / 2)); }
.ex-block { padding: clamp(80px, 9vw, 120px) var(--home-gutter); border-top: 1px solid var(--line); text-align: left; }
.home.ex .ex-block h2 { max-width: 18ch; margin: 0 0 28px; color: var(--text); font-size: clamp(30px, 3.4vw, 48px); font-weight: 500; line-height: 1.08; letter-spacing: -.05em; text-wrap: balance; }
.home.ex .ex-block p { margin: 0 0 18px; color: var(--secondary); font-size: 16.5px; line-height: 1.8; text-wrap: pretty; }
.home.ex .ex-block p:last-child { margin-bottom: 0; }
.home.ex .ex-block .home-eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 500; line-height: 1.5; }
.ex-block a:not([class]) { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ex-block code { color: var(--text); font-size: .88em; }

.ex-why__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 56px; align-items: start; }
.home.ex .ex-why h2 { margin: 0; }

.ex-limits { background: var(--bg-secondary); }
.ex-limits__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.ex-verdict { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--home-surface); box-shadow: inset 0 1px 0 var(--glass-shine); }
.ex-verdict__col { padding: 22px; }
.ex-verdict__col--yes { border-right: 1px solid var(--line); }
.home.ex .ex-block .ex-verdict__title { margin: 0 0 12px; color: var(--text); font-size: 13px; font-weight: 600; }
.ex-verdict ul { margin: 0; padding: 0; list-style: none; }
.home.ex .ex-verdict li { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 7px 0; color: var(--text); font-size: 15px; line-height: 1.45; }
.ex-verdict li::before { content: ""; flex: none; margin-top: 4px; }
.ex-verdict__col--yes li::before { width: 9px; height: 5px; border-bottom: 1.6px solid var(--main); border-left: 1.6px solid var(--main); transform: translateY(1px) rotate(-45deg); }
.ex-verdict__col--no li::before { width: 10px; height: 1.6px; margin-top: 10px; border-radius: 1px; background: var(--task-red); }
.ex-verdict__link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 8px; color: var(--link); font-size: 14px; font-weight: 500; text-underline-offset: 4px; }
.ex-aside { display: flex; align-items: flex-start; gap: 16px; margin-top: 32px; padding: 20px 22px; border: 1px dashed var(--border-hover); border-radius: 16px; background: var(--home-surface); }
.ex-aside__icon { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg-secondary); color: var(--secondary); }
.ex-aside__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.home.ex .ex-aside p { margin: 0; font-size: 15.5px; line-height: 1.75; }

.ex-check__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.ex-test { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--home-surface); box-shadow: inset 0 1px 0 var(--glass-shine), 0 40px 80px -56px #1a3a2666; }
.ex-test__list { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: none; }
.home.ex .ex-test__list li { display: flex; align-items: center; gap: 14px; margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 15px; line-height: 1.4; transition: opacity .5s var(--ease-out); }
.home.ex .ex-test__list li:last-child { border-bottom: 0; }
.ex-test__icon { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ex-tint); color: var(--main); transition: background-color .5s var(--ease-out), color .5s var(--ease-out); }
.ex-test__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ex-test__cta { width: 100%; text-decoration: none; }
.home.ex .ex-block .ex-test__note { margin: 12px 0 0; color: var(--secondary); font-size: 13px; text-align: center; }

.ex-faq__line { position: relative; max-width: 820px; padding-left: 36px; interpolate-size: allow-keywords; }
.ex-faq__line::before { content: ""; position: absolute; top: 30px; bottom: 30px; left: 10px; width: 1.5px; border-radius: 1px; background: var(--line); }
.ex-ms { border-bottom: 1px solid var(--line); }
.ex-ms summary { position: relative; display: flex; align-items: center; min-height: 64px; padding: 16px 0; color: var(--text); font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: -.02em; list-style: none; cursor: pointer; transition: color .2s var(--ease-out); }
.ex-ms summary::-webkit-details-marker { display: none; }
.ex-ms summary:hover { color: var(--main); }
.ex-ms summary:focus-visible { outline: none; }
.ex-ms summary i { position: absolute; top: 50%; left: -32px; width: 13px; height: 13px; margin-top: -6.5px; border: 1.5px solid var(--border-hover); border-radius: 2px; background: var(--bg); transform: rotate(45deg); transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .5s var(--ease-spring); }
.ex-ms summary:hover i { border-color: var(--main); }
.ex-ms summary:focus-visible i { border-color: var(--main); box-shadow: 0 0 0 4px var(--ex-ring); }
.ex-ms[open] summary i { border-color: var(--main); background: var(--main); box-shadow: 0 0 0 5px var(--ex-tint); transform: rotate(225deg); }
.home.ex .ex-ms p { max-width: 64ch; margin: 0; padding: 0 0 22px; font-size: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .motion .ex-test:not(.is-in) .ex-test__list li { opacity: .35; }
  .motion .ex-test:not(.is-in) .ex-test__icon { background: var(--bg-secondary); color: var(--secondary); }
  .motion .ex-test.is-in .ex-test__list li:nth-child(2), .motion .ex-test.is-in .ex-test__list li:nth-child(2) .ex-test__icon { transition-delay: .35s; }
  .motion .ex-test.is-in .ex-test__list li:nth-child(3), .motion .ex-test.is-in .ex-test__list li:nth-child(3) .ex-test__icon { transition-delay: .7s; }
  .motion .ex-test.is-in .ex-test__list li:nth-child(4), .motion .ex-test.is-in .ex-test__list li:nth-child(4) .ex-test__icon { transition-delay: 1.05s; }
  .ex-ms::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete; }
  .ex-ms[open]::details-content { block-size: auto; }
  .ex-ms[open] p { animation: ex-answer .55s var(--ease-out) .05s backwards; }
  @keyframes ex-answer { from { opacity: 0; transform: translateY(-6px); } }
}

@media print {
  .motion .ex-test .ex-test__list li { opacity: 1 !important; }
}

@media (max-width: 1100px) {
  .ex-slide__cap { grid-template-columns: minmax(0, 1fr); }
  .ex-why__grid, .ex-limits__grid, .ex-check__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820.8px) {
  .home .ex-slide { flex-basis: 90%; }
  .ex-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; }
  .ex-show__head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .examples-topline { gap: 12px; }
  .examples-topline > a { gap: 5px; font-size: 12px; }
  .home .ex-slide { flex-basis: 92%; border-radius: 20px; }
  .ex-slide__shot { aspect-ratio: 4 / 3; }
  .ex-pills { display: none; }
  .ex-controls { justify-content: flex-end; }
  .ex-verdict { grid-template-columns: minmax(0, 1fr); }
  .ex-verdict__col--yes { border-right: 0; border-bottom: 1px solid var(--line); }
  .ex-ms summary { font-size: 16px; }
  .home.ex .ex-ms p { font-size: 15px; }
}
