/* New in 1.0 (17 October): the spotlight above the features, and the features grouped by job.

   The spotlight's rows use the feature-row geometry and materials as they are (feature-spacing.css:
   D, the dark glass overlay on the rail, cards that clip and overlays that don't). Each card holds a
   small scene of the real UI instead of an illustration, drawn in em on a 56 x 44.8 grid so it scales
   with the card. The selection, capture bar and keystroke chips match the hero demo's.

   Motion: pluck-spotlight.js steps each scene. Without it, or under reduced motion, a scene shows its
   final frame (the parts marked .is-final). */

/* ---------- Spotlight ---------- */

.pluck-spotlight { padding-top: 65px; }
.pluck-spotlight .pluck-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.pluck-spotlight__head { margin-bottom: 34px; }
.pluck-spotlight__eyebrow {
  margin: 0 0 16px; font: 500 13px/1 var(--mono, "Geist Mono", ui-monospace, monospace);
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue, #1f4ff5);
}
.pluck-spotlight__head h2 {
  max-width: 760px; margin: 0;
  font: 700 clamp(38px, 4vw, 55px)/1.06 Georgia, serif; letter-spacing: -.04em;
}
.pluck-spotlight__head h2 span { display: block; color: var(--blue, #1f4ff5); }
.pluck-spotlight__label {
  margin: 0 0 12px; font: 500 12px/1 var(--mono, "Geist Mono", ui-monospace, monospace);
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue, #1f4ff5);
}
.pluck-spotlight .pluck-feature__copy .pluck-spotlight__label + h3 { margin-top: 0; }
.pluck-spotlight .pluck-feature__copy p + p { margin-top: 12px; }

/* The scene: a card with no art padding; everything inside is measured in em of a 56-wide grid. */
.pluck-feature__card.pluck-scene__card { padding: 0; container-type: inline-size; }
.pluck-scene__card > .pluck-scene__canvas {
  position: absolute; inset: 0; z-index: 1;
  font: 400 calc(100cqw / 56)/1.3 var(--body, "Geist", system-ui, sans-serif); color: #151719;
}
.pluck-scene__canvas > * { position: absolute; }

/* App windows, as in the hero demo. */
.ps-window {
  overflow: hidden; background: #fffaf0; border-radius: 1.2em;
  box-shadow: 0 1.4em 3.4em rgba(21, 32, 80, .16), 0 0 0 .08em rgba(21, 23, 25, .16);
}
.ps-titlebar {
  display: flex; align-items: center; gap: .55em; height: 2.6em; padding: 0 1.1em;
  border-bottom: .08em solid rgba(21, 23, 25, .1); background: #fff4dc;
  font-size: 1em; color: #5e605d; white-space: nowrap;
}
.ps-titlebar i { flex: none; width: .9em; height: .9em; border-radius: 50%; background: #e2d9c4; }
.ps-titlebar span { flex: 1; text-align: center; margin-right: 3.3em; overflow: hidden; text-overflow: ellipsis; }
.ps-body { padding: 1.5em 1.8em; }

/* The selection: blue 3px with black square handles, like #lsel. It's drawn inside the text it
   selects (.ps-pick), so it hugs that text whatever the fonts, and keeps the canvas's unit
   (100cqw / 56) however large that text is. */
.ps-pick { position: relative; }
.ps-sel {
  position: absolute; inset: -.55em -.9em; font-size: calc(100cqw / 56);
  border: .3em solid #1f4ff5; border-radius: .1em; clip-path: inset(-1.2em);
}
.ps-sel i { position: absolute; width: 1.1em; height: 1.1em; border-radius: .3em; background: #151719; }
.ps-sel i:nth-child(1) { left: -.7em; top: -.7em; }
.ps-sel i:nth-child(2) { right: -.7em; top: -.7em; }
.ps-sel i:nth-child(3) { left: -.7em; bottom: -.7em; }
.ps-sel i:nth-child(4) { right: -.7em; bottom: -.7em; }

/* The capture bar: dark glass, the chosen kind in yellow. */
.ps-bar {
  display: flex; gap: .3em; padding: .5em; border-radius: 1.4em; color: #fff;
  background: rgba(36, 36, 40, .86); border: .1em solid rgba(255, 255, 255, .16);
  box-shadow: 0 1.4em 4em rgba(0, 0, 0, .3);
}
.ps-bar span { display: grid; place-items: center; width: 4.4em; height: 3.8em; border-radius: 1em; }
.ps-bar span.is-chosen { background: #ffdc3e; color: #151719; }
.ps-bar svg { width: 2em; height: 2em; }

/* Keystroke chips, as in the hero demo. Their text is larger than the canvas's, so they're placed
   in the canvas's unit (--u), not their own em. */
.pluck-scene__canvas { --u: calc(100cqw / 56); }
.ps-keys {
  padding: .4em .6em; border-radius: .55em; background: rgba(17, 19, 22, .84); color: #fff;
  font: 600 2.1em/1 var(--mono, "Geist Mono", ui-monospace, monospace); box-shadow: 0 .4em 1em rgba(0, 0, 0, .25);
}

/* Overlay contents (on the feature overlay material). */
.ps-hud-detail { margin: 4px 0 0 20px; color: #d2d3dc; }
.pluck-feature__overlay code { display: block; font: 500 12px/1.45 var(--mono, "Geist Mono", ui-monospace, monospace); white-space: nowrap; }

/* ----- Copy for AI ----- */
.ps-dash { left: 3em; top: 3em; width: 30em; height: 20.5em; }
.ps-field small { display: block; font-size: 1em; color: #85867f; }
.ps-field code { display: block; margin: .25em 0 1em; font: 500 1.25em/1.2 var(--mono, "Geist Mono", ui-monospace, monospace); }
.ps-field span { display: block; margin: .25em 0 1em; font-size: 1.25em; }
.ps-alert { padding: .55em .8em; border-radius: .7em; background: #ffe5dd; color: #a8321c; font-size: 1.05em; white-space: nowrap; }
.ps-alert b { font-weight: 700; }
.ps-chat { left: 22.5em; top: 25.4em; width: 31em; height: 18.4em; display: flex; flex-direction: column; }
.ps-msg { margin: 1em 1.2em 0 5.5em; display: flex; gap: .9em; align-items: flex-start; padding: .9em; border-radius: 1.1em; background: #e9eeff; }
.ps-shot {
  position: relative; flex: none; display: grid; gap: .45em; width: 7.4em; padding: .7em .75em; border-radius: .6em;
  background: #fffaf0; box-shadow: 0 0 0 .08em rgba(21, 23, 25, .14);
}
.ps-shot-line { display: block; height: .45em; border-radius: .3em; background: #d9d3c4; }
.ps-shot-line.is-short { width: 55%; }
/* The key and the email in the copied image, pixelated as Pluck hides them. */
.ps-shot-px {
  display: block; height: .9em; width: 92%; border-radius: .15em;
  background:
    linear-gradient(90deg, #b8b2a4 0 18%, #cfc9bb 18% 31%, #a9a395 31% 47%, #c7c1b2 47% 60%, #b2ac9e 60% 76%, #d2ccbe 76% 88%, #bdb7a9 88%) top / 100% 50% no-repeat,
    linear-gradient(90deg, #cac4b6 0 14%, #aea89a 14% 29%, #c9c3b5 29% 43%, #b3ad9f 43% 58%, #cdc7b9 58% 71%, #aba597 71% 86%, #c4beb0 86%) bottom / 100% 50% no-repeat;
}
.ps-shot-px.is-short { width: 70%; }
.ps-msg-text { margin: 0; font-size: .92em; line-height: 1.45; color: #24262b; }
.ps-msg-text .c { display: block; color: #6c6e76; }
.ps-msg-text mark { background: #ffdc3e; color: #151719; border-radius: .2em; padding: 0 .15em; }
.ps-composer {
  margin: auto 1.2em 1em; display: flex; align-items: center; justify-content: space-between;
  padding: .7em .7em .7em 1em; border-radius: 1.1em; background: #fff; box-shadow: 0 0 0 .08em rgba(21, 23, 25, .14);
  font-size: 1.05em; color: #85867f;
}
.ps-composer i { width: 1.9em; height: 1.9em; border-radius: 50%; background: #151719; }
[data-pluck-scene="ai"] .ps-bar { left: 4.4em; top: 20em; }
[data-pluck-scene="ai"] .ps-keys { left: calc(var(--u) * 4.4); top: calc(var(--u) * 20.4); }
[data-pluck-scene="ai"] .ps-keys.is-paste { left: calc(var(--u) * 41); top: calc(var(--u) * 20.6); }

/* ----- Exact text ----- */
.ps-note { left: 4em; top: 4.8em; width: 48em; height: 24.6em; }
.ps-note .ps-body p { margin: 0; font-size: 1.15em; color: #85867f; }
.ps-note .ps-body p.ps-big { margin: .2em 0 1em; font-size: 2.05em; font-weight: 500; letter-spacing: .01em; color: #151719; }
.ps-note-title { display: block; margin-bottom: .8em; font: 700 1.7em/1.1 Georgia, serif; }
[data-pluck-scene="exact"] .ps-bar { left: 5em; top: 24.9em; }
[data-pluck-scene="exact"] .ps-keys { left: calc(var(--u) * 5); top: calc(var(--u) * 25.3); }
.ps-compare-row small { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px; color: #d2d3dc; }
.ps-compare-row + .ps-compare-row { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); }
.ps-compare-row.is-guess code { color: rgba(247, 247, 248, .78); }
.ps-compare-row em { font-style: normal; color: #fff; background: rgba(250, 86, 56, .62); border-radius: 3px; padding: 0 1px; }
.ps-compare-row em.gap { display: inline-block; width: .7em; background: rgba(250, 86, 56, .62); }
.ps-compare-row.is-exact small { color: #f7f7f8; }
.ps-compare-row.is-exact small i { width: 12px; height: 12px; border-radius: 50%; background: var(--marker, #ffdc3e); }

/* ----- Copy with source ----- */
.ps-src { left: 3em; top: 3em; width: 38em; height: 22.6em; }
.ps-url { font-family: var(--mono, "Geist Mono", ui-monospace, monospace); font-size: .95em; }
.ps-src .ps-body b { display: block; margin-bottom: .6em; font-size: 1.5em; }
.ps-src .ps-body p { margin: 0 0 .9em; font-size: 1.3em; line-height: 1.45; }
.ps-src .ps-body p.ps-dim { color: #85867f; }
.ps-src .ps-body p.ps-pick { width: max-content; max-width: 100%; }
.ps-page { margin: 1.2em 2.4em 0; padding: 2em 2.4em; background: #fff; box-shadow: 0 .2em .9em rgba(21, 23, 25, .1); height: 100%; }
.ps-pdf { background: #ece7da; }
/* The video: one of the site's characters on camera, on brand blue, with the player's shade
   behind its controls. */
.ps-player { position: relative; height: calc(100% - 2.6em); overflow: hidden; background: #dce5ff; }
.ps-frame { position: absolute; left: 50%; top: -1.4em; height: 100%; width: auto; transform: translateX(-50%); }
.ps-player::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7em;
  background: linear-gradient(rgba(21, 23, 25, 0), rgba(21, 23, 25, .72));
}
.ps-caption, .ps-progress, .ps-time { z-index: 1; }
.ps-caption {
  position: absolute; left: 50%; bottom: 4.3em; transform: translateX(-50%); white-space: nowrap;
  padding: .3em .6em; background: rgba(0, 0, 0, .7); color: #fff; font-size: 1.35em;
}
.ps-progress { position: absolute; left: 1.6em; right: 1.6em; bottom: 3.6em; height: .35em; background: rgba(255, 255, 255, .28); }
.ps-progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; background: #ff3b30; }
.ps-time { position: absolute; left: 1.6em; bottom: 1.3em; color: #fff; font: 500 1.1em/1 var(--mono, "Geist Mono", ui-monospace, monospace); }
.ps-source { display: grid; }
.ps-source-item { grid-area: 1 / 1; }
.ps-chip {
  display: inline-flex; align-items: center; gap: 5px; margin: 8px 0 6px 20px; padding: 4px 8px;
  border-radius: 7px; background: rgba(255, 255, 255, .14); font-size: 12px; white-space: nowrap;
}
.ps-chip svg { width: 13px; height: 13px; }
.ps-source-item { min-width: 0; }
.ps-source code { margin-left: 20px; color: #d2d3dc; overflow: hidden; text-overflow: ellipsis; }
.ps-notes { left: 25em; top: 26.6em; width: 28em; height: 15.6em; }
.ps-notes .ps-body { position: relative; padding: 1.2em 1.5em; }
.ps-paste { position: absolute; left: 1.5em; right: 1.5em; top: 1.2em; }
.ps-paste p { margin: 0 0 .5em; font-size: 1.15em; line-height: 1.45; }
.ps-paste a { color: #1f4ff5; font-size: 1.1em; text-decoration: underline; text-underline-offset: .2em; }

/* ----- States ----- */
/* Still: only the final frame. */
.pluck-scene:not(.is-playing) .ps-part:not(.is-final) { opacity: 0; visibility: hidden; }
/* Playing: parts come and go as the script says. */
.pluck-scene.is-playing .ps-part {
  opacity: 0; visibility: hidden; transform: translateY(.6em);
  transition: opacity .38s ease, transform .5s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .38s, clip-path .6s cubic-bezier(.32, .72, 0, 1);
}
.pluck-scene.is-playing .pluck-feature__overlay.ps-part { transform: translateY(8px); }
.pluck-scene.is-playing .ps-part.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* The selection draws from its top-left corner. */
.pluck-scene.is-playing .ps-sel { transform: none; }
.pluck-scene.is-playing .ps-sel:not(.is-on) { clip-path: inset(-1.2em calc(100% + 1.2em) calc(100% + 1.2em) -1.2em); }
/* Windows cross-fade in place. */
.pluck-scene.is-playing .ps-window.ps-part { transform: none; }

/* Below 1280px the card is too small for the overlay to sit on the scene without covering the
   result, so the card grows to keep the whole scene above it, as the clipboard row does
   (feature-spacing.css). The scene keeps its 5:4 grid at the top of the card; the overlay takes its
   place in a grid so the room below the scene always fits its real height, 14px under the scene and
   still D below the card. */
@media (max-width: 1279px) {
  .pluck-scene { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 14px auto var(--feature-d); }
  .pluck-scene::before { content: ""; grid-area: 1 / 1; padding-top: 80%; }
  .pluck-scene > .pluck-scene__card { grid-area: 1 / 1 / 4; aspect-ratio: auto; }
  .pluck-scene > .pluck-feature__overlay { grid-area: 3 / 1 / 5; position: relative; bottom: auto; }
  /* On the rail, D past the card. */
  .is-art-left .pluck-scene > .pluck-feature__overlay { justify-self: start; margin-left: calc(-1 * var(--feature-d)); }
  .is-art-right .pluck-scene > .pluck-feature__overlay { justify-self: end; margin-right: calc(-1 * var(--feature-d)); }
}
/* Phones: the overlay is centred under the card (feature-spacing.css). */
@media (max-width: 760px) {
  .pluck-spotlight { padding-top: 30px; }
  .pluck-spotlight__head h2 { font-size: 36px; }
  .pluck-feature .pluck-scene > .pluck-feature__overlay { justify-self: center; margin-inline: auto; }
}

/* ---------- Features by job ---------- */

/* Wide screens: a sticky list of the groups beside them, like a guide's "In this guide" (guides.css
   .toc), marking the group in view. Narrower: the same links as pills above the groups. */
/* Twice the space under the section's title as before (17 October): 68px to the first card, 48px to
   the pills. */
#features .features-title { margin-bottom: 68px; }
.pluck-catalogue__nav { display: flex; flex-wrap: wrap; gap: 8px; margin: -20px 0 48px; }
.pluck-catalogue__nav a {
  padding: 9px 15px; border: 1px solid #d8d1c2; border-radius: 999px; background: #fffdf6;
  color: #151719; font: 500 14px/1.2 var(--body, "Geist", system-ui, sans-serif); text-decoration: none;
}
.pluck-catalogue__nav a:hover { border-color: #151719; }
.pluck-catalogue__nav a > span, .pluck-catalogue__eyebrow, .pluck-catalogue__nav .pluck-catalogue__all { display: none; }
@media (min-width: 1200px) {
  .pluck-catalogue { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; align-items: start; }
  .pluck-catalogue__aside { position: sticky; top: 112px; }
  .pluck-catalogue__nav { display: block; margin: 0; }
  .pluck-catalogue__eyebrow {
    display: block; margin-bottom: 12px; font: 600 11px/1.6 var(--body, "Geist", system-ui, sans-serif);
    letter-spacing: .16em; text-transform: uppercase; color: #151719;
  }
  .pluck-catalogue__nav a {
    display: flex; gap: 10px; padding: 13px 0; border: 0; border-bottom: 1px solid #e4dbc9; border-radius: 0;
    background: none; color: #6b6d68; font-weight: 400; line-height: 1.5; transition: color .2s ease;
  }
  .pluck-catalogue__nav a > span { display: inline; padding-top: 2px; font-size: 11px; color: var(--blue, #1f4ff5); }
  .pluck-catalogue__nav a:hover, .pluck-catalogue__nav a.is-current { color: #151719; }
  .pluck-catalogue__nav .pluck-catalogue__all { display: block; margin-top: 18px; border: 0; color: #151719; }
  /* The side list names the groups, so their headings leave the page's face (17 October) but stay
     in its outline; the list starts level with the top of the first card. */
  .pluck-catalogue__head {
    position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
  }
  .pluck-catalogue__aside { margin-top: -4px; }   /* the eyebrow's letters on the first card's top edge */
}
.pluck-catalogue__group { border-top: 2px solid #151719; padding-top: 28px; }
.pluck-catalogue__group + .pluck-catalogue__group { margin-top: 24px; }
/* The first group sits right under the section's title: no rule above it (17 October). */
.pluck-catalogue__group:first-child { border-top: 0; padding-top: 0; }
.pluck-catalogue__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 40px; }
.pluck-catalogue__head h3 { margin: 0; font: 700 32px/1.1 Georgia, serif; letter-spacing: -.03em; }
.pluck-catalogue__head p { margin: 0; max-width: 560px; font-size: 15px; line-height: 1.6; color: var(--ink-2, #5e605d); }
.pluck-catalogue__head p a { color: var(--blue, #1f4ff5); text-underline-offset: 3px; }

/* Rows sit under a group heading, so their headings are h4, styled as the h3s were. */
.pluck-feature__copy h4 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 29px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0; max-width: 440px; text-wrap: balance;
}
@media (max-width: 1100px) { .pluck-feature__copy h4 { font-size: 26px; } }
@media (max-width: 760px) {
  .pluck-feature__copy h4 { font-size: 24px; }
  .pluck-catalogue__nav { margin-bottom: 36px; }
  .pluck-catalogue__head { margin-bottom: 28px; }
  .pluck-catalogue__head h3 { font-size: 28px; }
}
