/* Feature list: one spacing rule for all ten rows (creative brief, 9 October).

   The two ends of each divider are the outer rails. With D = --feature-d:
     - the coloured card is inset D from its rail;
     - the overlay sits on that rail, so it extends D past the card sideways;
     - the overlay ends D below the card.
   Card inset = sideways overhang = downward overhang = D, on every row.
   Rows say which side the art is on (is-art-left / is-art-right); nothing here
   depends on a row's position in the list. */

.pluck-features {
  --feature-d: 32px;
  --feature-divider-clearance: 32px;  /* overlay bottom to the next divider */
  --feature-row-top: 24px;            /* divider to the next row */
  --feature-column-gap: 40px;
  --feature-common-panel-width: 260px;
  padding-bottom: 8px;
}

.pluck-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--feature-column-gap);
  align-items: center;
  padding-block: var(--feature-row-top) calc(var(--feature-d) + var(--feature-divider-clearance));
  overflow: visible;
}
.pluck-feature + .pluck-feature { border-top: 1px solid var(--hair, #e4dbc9); }
.pluck-feature:first-child { padding-top: 0; }

/* Copy first in the reading order; placed beside the art. */
.pluck-feature__copy { min-width: 0; grid-row: 1; }
.pluck-feature__visual { position: relative; min-width: 0; grid-row: 1; overflow: visible; isolation: isolate; }
.is-art-left .pluck-feature__visual { grid-column: 1; padding-left: var(--feature-d); }
.is-art-left .pluck-feature__copy { grid-column: 2; padding-right: var(--feature-d); }
.is-art-right .pluck-feature__visual { grid-column: 2; padding-right: var(--feature-d); }
.is-art-right .pluck-feature__copy { grid-column: 1; padding-left: var(--feature-d); }

.pluck-feature__copy h3 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 29px; line-height: 1.1; letter-spacing: -0.02em; margin: 0; max-width: 440px;
}
.pluck-feature__copy p { margin-top: 18px; font-size: 15px; line-height: 1.7; max-width: 440px; color: var(--ink-2, #4a4b47); }
.pluck-feature__copy .links { display: grid; justify-items: start; gap: 10px; margin-top: 20px; }
.pluck-feature kbd {
  display: inline-block; font: 600 .82em/1 var(--mono, ui-monospace, monospace); letter-spacing: .02em;
  background: #151719; color: #fffaf0; border: 0; border-radius: 6px; padding: .32em .5em .3em;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .14), 0 1px 0 rgba(21, 23, 25, .25); vertical-align: .08em;
}
.pluck-feature p kbd { font-size: .86em; }

/* The coloured card. Only the card clips; the overlay and its shadow never do. */
.pluck-feature__card {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 22px;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* Safari: clip to the rounded corners */
  display: grid; place-items: center;
  /* Room at the bottom for the overlay's corner, so it never covers the drawing. */
  padding: 6% 8% 17%;
}
/* The site's grain texture sits over the colour; the artwork sits above it. */
.pluck-feature__card > * { position: relative; z-index: 1; }
.pluck-feature__card.is-yellow { background: #ffe379; }
.pluck-feature__card.is-blue { background: #dce5ff; }
.pluck-feature__card.is-peach { background: #ffe3cf; }

.pluck-feature__art { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
/* Approved optical adjustments, on the art layer only. */
.pluck-feature__art.art-bonjour { object-position: calc(50% + 40px) 50%; }
/* The clipboard panel is tall: the tray moves right, clear of its corner. */
.pluck-feature__card.has-clipboard { padding-bottom: 27%; }
.has-clipboard .pluck-feature__art.art-retrieve { object-position: calc(50% + 56px) 50%; }
/* Owner placement (9 October): the tray and picture fill the middle of the card. */
@media (min-width: 1024px) {
  .has-clipboard .pluck-feature__art.art-retrieve { transform: translate(-6%, 3%); }
}
@media (min-width: 1360px) {
  .has-clipboard .pluck-feature__art.art-retrieve { transform: translate(-15%, 4%); }
}
.pluck-feature__gif {
  width: auto; height: auto; max-width: 70%; max-height: 100%; aspect-ratio: 260 / 229;
  object-fit: cover; border-radius: 12px; outline: 3px solid var(--red, #fa5638); outline-offset: 3px;
}
/* QR: the code sits inside the illustration's selection frame. */
.pluck-feature__art.qr-art { display: flex; align-items: center; justify-content: center; }
.qr-art .qr-box { position: relative; height: 100%; max-width: 100%; aspect-ratio: 1448 / 1086; }
/* Sized from the card's width alone (17 October): Safari can resolve the percentage height above to
   nothing here, which left only the white QR. The card's content box is 0.6786 as tall as it is
   wide (5:4 card, padding 6% 8% 17%), so the 1448 x 1086 art fills its height at 90.5% of its width. */
.pluck-feature__card.has-qr { container-type: inline-size; }
.has-qr .qr-art .qr-box { width: 90.5cqw; height: auto; }
.qr-art .qr-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.qr-art .qr-in-frame {
  position: absolute; left: 65.8%; top: 32.7%; width: 11.5%; aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-26deg);
  background: #fff; padding: 2.5px; border-radius: 3px; box-sizing: border-box;
}
.qr-art .qr-in-frame svg { display: block; width: 100%; height: 100%; }

/* The overlay: on the rail, D below the card. Dark translucent glass. */
.pluck-feature__overlay {
  position: absolute; z-index: 2;
  bottom: calc(-1 * var(--feature-d));
  max-width: 100%; box-sizing: border-box;
  color: #f7f7f8; font: 500 12px/1.4 var(--body, "Geist", system-ui, sans-serif);
  background: rgba(24, 28, 36, .86);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 8px 18px rgba(10, 14, 30, .2);
}
.is-art-left .pluck-feature__overlay { left: 0; }
.is-art-right .pluck-feature__overlay { right: 0; }
.pluck-feature__overlay.is-common-width { width: var(--feature-common-panel-width); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pluck-feature__overlay { background: #1c2028; }
}
@media (prefers-reduced-transparency: reduce) {
  .pluck-feature__overlay { background: #1c2028; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Overlay contents. Decorative: they show the UI, they don't act. */
.pluck-feature__overlay .btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.pluck-feature__overlay .btns span { font-size: 12px; padding: 5px 9px; border-radius: 7px; background: rgba(255, 255, 255, .14); white-space: nowrap; }
.pluck-feature__overlay .btns span.p { background: var(--marker, #ffdc3e); color: #151719; }
.pluck-feature__overlay .tst { display: flex; align-items: center; gap: 8px; }
.pluck-feature__overlay .tst i { width: 12px; height: 12px; border-radius: 50%; background: var(--marker, #ffdc3e); flex: none; }
.pluck-feature__overlay .tst + .btns { margin-left: 20px; }
.ov-code { display: grid; gap: 7px; font: 500 12px/1.3 var(--mono, ui-monospace, monospace); }
.ov-code .c { color: rgba(255, 255, 255, .62); }
.ov-code .mark-sel { white-space: nowrap; outline: 2px solid var(--marker, #ffdc3e); outline-offset: 2px; border-radius: 2px; padding: 0 2px; justify-self: start; }
.ov-label { color: rgba(255, 255, 255, .72); }
.ov-amount { font-size: 20px; font-weight: 500; filter: blur(4px); margin-top: 2px; }
.ov-tabs { display: flex; gap: 4px; margin-top: 9px; }
.ov-tabs span { padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .1); white-space: nowrap; }
.ov-tabs span.on { background: #fff; color: #151719; }
.ov-quote { font: italic 14px/1.4 Georgia, serif; color: rgba(255, 255, 255, .92); }
.ov-qr { display: flex; align-items: flex-start; gap: 10px; }
.ov-qr-icon { font-size: 15px; line-height: 1.2; }

/* Tool panels (Pick a color, Record a GIF; brief of 9 October): compact previews of the
   real picker and recorder. One 264 x 128 size for both, rows 18 / 48 / 16 with 10px gaps.
   Placement follows the shared rule above (on the rail, D below the card). */
.pluck-feature__overlay.is-tool { display: grid; grid-template-rows: 18px 48px 16px; gap: 10px; height: 128px; }
/* Shared material for the 264px panels (tools, clipboard, copy confirmation). */
.pluck-feature__overlay.is-tool, .pluck-feature__overlay.is-clipboard, .pluck-feature__overlay.is-confirm {
  width: 264px; padding: 12px 14px;
  color: #fffdf6; background: rgba(29, 31, 38, .88);
  -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, .19); border-radius: 16px;
  box-shadow: 0 12px 28px rgba(18, 21, 28, .18), inset 0 1px 0 rgba(255, 255, 255, .06);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pluck-feature__overlay.is-tool, .pluck-feature__overlay.is-clipboard, .pluck-feature__overlay.is-confirm { background: #1d1f26; }
}
.tool-head, .tool-name, .tool-foot { display: flex; align-items: center; }
.tool-head { justify-content: space-between; }
.tool-name { gap: 7px; font-size: 12px; font-weight: 700; }
.tool-name svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool-close { display: grid; place-items: center; width: 18px; height: 18px; color: #c6c7cc; font-size: 20px; line-height: 1; }
.tool-main { display: flex; align-items: center; gap: 10px; }
.pixel-grid { display: grid; grid-template-columns: repeat(7, 1fr); flex: none; width: 48px; height: 48px; overflow: hidden; border: 1px solid #9499aa; border-radius: 7px; background: #dce5ff; }
.pixel-grid i { display: block; }
.pixel-grid i.picked { position: relative; z-index: 1; outline: 1px solid #171819; outline-offset: -1px; box-shadow: inset 0 0 0 2px #fff; }
.color-value { display: flex; flex-direction: column; flex: 1; gap: 2px; }
.color-value small { font-size: 9px; letter-spacing: .08em; color: #bfc2cd; }
.color-value strong { font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.tool-icon-btn { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 8px; background: #ffe23e; color: #171819; }
.tool-icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tool-foot { gap: 5px; font-size: 10px; line-height: 16px; color: #c9cbd3; white-space: nowrap; }
.tool-foot b { font-weight: 400; color: #ececf0; }
.tool-swatch { flex: none; width: 9px; height: 9px; border-radius: 3px; background: #dce5ff; }
.tool-foot-end { margin-left: auto; }
.tool-rec-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #ff553c; box-shadow: 0 0 0 3px #ff553c16; }
.elapsed { display: flex; flex-direction: column; flex: 1; gap: 1px; }
.elapsed strong { font-size: 23px; line-height: 25px; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.elapsed small { font-size: 10px; color: #bfc2cd; }
.tool-stop { display: flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 8px; background: #ffe23e; color: #171819; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tool-stop i { width: 9px; height: 9px; border-radius: 2px; background: #171819; }
.tool-progress { flex: 1; height: 3px; margin-right: 8px; overflow: hidden; border-radius: 4px; background: #ffffff20; }
.tool-progress > span { display: block; width: 26.6667%; height: 100%; border-radius: 4px; background: #ff684f; }   /* 4 of 15 s */

/* The clipboard (brief of 9 October): 264 x 190, the filters and two of the four items. */
.pluck-feature__overlay.is-clipboard { height: 190px; padding: 12px; }
.clip-head { display: flex; align-items: center; gap: 5px; font-size: 14px; line-height: 20px; }
.clip-head > span { color: #d2d3dc; }
.clip-more { font-style: normal; color: #d2d3dc; letter-spacing: 1px; line-height: 1; }
.clip-head .clip-more { margin-left: auto; font-size: 15px; }
.is-clipboard .ov-tabs { margin: 9px 0 10px; }
.is-clipboard .ov-tabs span { padding: 0 8px; font-size: 10px; line-height: 24px; background: rgba(255, 255, 255, .07); }
.is-clipboard .ov-tabs span.on { background: #fffdf6; color: #191b20; }
.clip-items { border-top: 1px solid rgba(255, 255, 255, .09); padding-top: 5px; }
.clip-item { display: flex; align-items: center; gap: 8px; height: 44px; padding: 5px; border-radius: 8px; }
.clip-item.is-current { background: rgba(255, 255, 255, .06); }
.clip-thumb { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 6px; }
.clip-thumb.is-image { background: #2455ff; }
.clip-thumb svg { width: 26px; height: 26px; fill: #fff9ed; }
.clip-thumb.is-text { background: #fff9ed; color: #25262c; font: 700 14px Georgia, serif; }
.clip-copy { flex: 1; min-width: 0; }
.clip-copy b { display: block; overflow: hidden; font-size: 11px; font-weight: 400; line-height: 16px; white-space: nowrap; text-overflow: ellipsis; }
.clip-copy small { display: block; color: #bbbcc6; font-size: 9px; line-height: 13px; }
.clip-paste { padding: 5px 6px; border-radius: 5px; background: rgba(255, 255, 255, .08); font-size: 10px; line-height: 1.2; }
.clip-item .clip-more { width: 30px; text-align: center; font-size: 12px; }

/* Copy as image: the confirmation shown after a copy succeeds. */
.pluck-feature__overlay.is-confirm { padding: 17px 18px; }
.is-confirm > b { display: block; font-size: 17px; font-weight: 700; line-height: 23px; }
.is-confirm > p { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: #d2d3dc; font-size: 13px; line-height: 20px; }
.is-confirm .ov-key { display: inline-flex; align-items: center; gap: 2px; padding: 0; border: 0; background: none; box-shadow: none; color: #fffdf6; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 20px; white-space: nowrap; }
.is-confirm .ov-key svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Narrower desktops: smaller headings, same geometry. */
@media (max-width: 1100px) {
  .pluck-features { --feature-column-gap: 32px; }
  .pluck-feature__copy h3 { font-size: 26px; }
}

/* Stacked: copy, then the art, with D = 20px. */
@media (max-width: 760px) {
  .pluck-features { --feature-d: 20px; --feature-common-panel-width: min(260px, 100%); }
  .pluck-feature { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .pluck-feature .pluck-feature__copy { grid-column: 1; grid-row: 1; padding-inline: 0; }
  .pluck-feature .pluck-feature__visual { grid-column: 1; grid-row: 2; padding-inline: 0; }
  /* Phones: the card spans the column and the overlay is centred on it,
     still hanging D below the card's bottom edge. */
  .pluck-feature .pluck-feature__overlay { left: 0; right: 0; width: fit-content; margin-inline: auto; }
  .pluck-feature .pluck-feature__overlay.is-common-width { width: var(--feature-common-panel-width); }
  .pluck-feature .pluck-feature__overlay.is-tool,
  .pluck-feature .pluck-feature__overlay.is-clipboard,
  .pluck-feature .pluck-feature__overlay.is-confirm { width: 264px; max-width: 100%; }
  /* The tool panels are taller: lift the art clear of them, as in the brief. */
  .pluck-feature__card.has-tool { padding-bottom: 36%; }
  .pluck-feature__copy h3 { font-size: 24px; }
  .pluck-feature__copy p { font-size: 14px; margin-top: 14px; }
  .pluck-feature__copy .links { margin-top: 14px; }
  .pluck-feature__art.art-bonjour { object-position: calc(50% + 24px) 50%; }
}

/* Tablets and phones: the 190px clipboard panel is tall for a small card, so the card
   grows to keep the hand and tray above the panel. */
@media (max-width: 1023px) {
  .pluck-feature__card.has-clipboard { aspect-ratio: auto; padding-bottom: calc(190px - var(--feature-d) + 14px); }
  .has-clipboard .pluck-feature__art.art-retrieve { height: auto; object-position: 50% 50%; }
}
