/* ============================================================
   COMPONENTES — as peças reutilizáveis do kit
   Cada uma corresponde a um padrão identificado na referência.
   ============================================================ */

/* ------------------------------------------------------------
   1. HOME — cartões de entrada, faixa diagonal, bloco "sobre"
   ------------------------------------------------------------ */
:root { --cta-h: clamp(120px, 22vh, 260px); }
.home-cta {
  grid-column: 1 / -1;
  display: grid;
  align-items: end;
  min-height: var(--cta-h);
  padding-block: var(--sp-md);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: background-color var(--t-ui), color var(--t-ui);
}
.home-cta:hover { background: var(--c-pair-1); color: var(--c-white); }
:root.dark .home-cta:hover { background: var(--c-accent-1); color: #000; }
.home-cta__row { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-link); }
.home-cta__row svg { width: 0.8em; height: 0.8em; flex: none; }

/* A boas-vindas ocupa o resto da primeira dobra e assenta no fundo dela,
   a 21 px da borda: título à esquerda, texto de apoio à direita, os dois
   alinhados pela base. */
.home-welcome {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-content: end;
  align-items: end;
  row-gap: var(--sp-sm);
  min-height: calc(100svh - var(--header-h) - var(--cta-h));
  padding-top: var(--sp-lg);
  padding-bottom: 21px;
  border-bottom: 1px solid var(--border);
}
.home-welcome h1 {
  grid-column: 1 / -1;
  margin: 0;
  font-size: min(var(--fs-h1), 9vw);
  font-weight: var(--fw-light);
  line-height: 1.1;
}
.nowrap { white-space: nowrap; }
.home-welcome p { grid-column: 1 / -1; margin: 0; font-size: var(--fs-body); font-weight: var(--fw-light); }

.home-visual { grid-column: 1 / -1; display: flex; border-bottom: 1px solid var(--border); min-height: clamp(220px, 34vh, 420px); }
.home-visual__img { position: relative; flex: 1; background: var(--c-gray) center/cover no-repeat; }
.home-visual__block { width: 12%; background: var(--c-accent-1); }
.home-visual__diagonal { width: 22%; background: var(--c-accent-1); color: var(--bg); }
.home-visual__diagonal svg { display: block; width: 100%; height: 100%; }

.home-about {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  row-gap: var(--sp-sm);
  padding-block: var(--sp-lg);
  border-bottom: 1px solid var(--border);
}
.home-about h2 { grid-column: 1 / -1; margin: 0; font-size: var(--fs-body); font-weight: var(--fw-medium); }
.home-about p  { grid-column: 1 / -1; margin: 0; font-size: var(--fs-body); font-weight: var(--fw-light); }

.home-statement {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  padding-block: var(--sp-xl);
}
.home-statement p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: var(--fw-light);
  line-height: 1.3;
}

@media (min-width: 768px) {
  .home-cta { grid-column: span 4; }
  .home-welcome h1 { grid-column: 1 / span 5; grid-row: 1; white-space: nowrap; }
  .home-welcome p  { grid-column: 6 / -1; grid-row: 1; }
  .home-about h2 { grid-column: 1 / span 2; }
  .home-about p  { grid-column: 3 / -1; }
  .home-statement p { grid-column: 3 / -1; }
}
/* Mobile: os dois cartões dividem a primeira dobra em vez de ocupá-la
   inteira um embaixo do outro (ui-ux-pro-max §5 content-priority) */
@media (max-width: 767px) {
  :root { --cta-h: 120px; }   /* a boas-vindas desconta a altura real dos cartões */
  .home-cta { grid-column: span 4; min-height: var(--cta-h); padding-block: var(--sp-sm); }
  .home-cta:nth-of-type(2) { border-right: 0; }
  .home-cta__row { font-size: 17px; gap: 0.5em; align-items: flex-end; }
  .home-welcome { padding-top: var(--sp-md); }
  .home-visual { min-height: 220px; }
  .home-visual__diagonal { width: 26%; }
  .home-visual__block { width: 10%; }
}
@media (min-width: 1080px) {
  .home-cta { grid-column: span 3; }
  .home-welcome h1 { grid-column: 1 / span 8; }
  .home-welcome p  { grid-column: 9 / -1; }
}

/* ------------------------------------------------------------
   2. AMOSTRAS DE COR — fila de cores + ficha técnica
   ------------------------------------------------------------ */
.swatch-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.swatch {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.2em;
  min-height: clamp(160px, 26vh, 340px);
  padding: var(--gutter-half);
  font-size: var(--fs-caption);
  line-height: 1.4;
  color: #000;
}
.swatch--on-dark { color: var(--c-white); }
.swatch-groups { grid-column: 1 / -1; }
.swatch-group__title { margin: 0; padding-block: var(--sp-sm) var(--sp-xs); font-size: var(--fs-caption); font-weight: var(--fw-medium); letter-spacing: .04em; opacity: .75; }
.swatch-row--cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border-block: 1px solid var(--border); }
.swatch--card { padding: 0; min-height: 0; justify-content: flex-start; color: var(--fg); background: var(--bg); }
.swatch__chip { aspect-ratio: 3 / 2; }
.swatch__info { display: flex; flex-direction: column; gap: .15em; padding: var(--sp-sm) var(--gutter-half) var(--sp-md); }
.swatch--card .swatch__name { font-size: var(--fs-body); font-weight: var(--fw-medium); text-transform: none; }
.swatch__shade { font-size: var(--fs-small); margin-bottom: .6em; }
.swatch--card .swatch__spec dt { min-width: 5.2em; }
.pair__accent b, .pair__dark b { display: block; font-weight: var(--fw-medium); }
.pair__accent small, .pair__dark small { display: block; opacity: .75; margin-top: .2em; }
.pair__accent, .pair__dark { text-align: center; padding: var(--sp-xs); }
@media (max-width: 767px) {
  /* Duas amostras por linha e ficha legível — 3 colunas de 125 px espremem CMYK/PMS */
  .swatch-row, .swatch-row--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swatch { min-height: 200px; font-size: 13px; }
  .pairs { grid-template-columns: repeat(2, 1fr); }
  .showcase__caption, .demo__control, .demo__readout, .type-spec__meta, .icon-cell { font-size: 13px; }
  .demo__stage { min-height: 260px; }
  .download-item { font-size: 20px; }
}
.swatch__name { font-weight: var(--fw-medium); text-transform: capitalize; }
.swatch__spec { display: flex; gap: 0.4em; }
.swatch__spec dt { opacity: .7; margin: 0; }
.swatch__spec dd { margin: 0; }

/* ------------------------------------------------------------
   3. PARES DE COR — grade acento/escuro
   ------------------------------------------------------------ */
.pairs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.pair { display: flex; flex-direction: column; }
.pair__accent, .pair__dark { min-height: clamp(80px, 12vh, 160px); display: grid; place-items: center; font-size: var(--fs-caption); }
.pair__accent { color: var(--ink); }
.pair__dark   { color: var(--c-white); }

/* ------------------------------------------------------------
   4. BARRA DE FERRAMENTAS DOS "APPS" INTERATIVOS
   Padrão da referência: um painel de controles (inversão,
   tamanho, peso, grade) acima de uma área de demonstração.
   ------------------------------------------------------------ */
.demo {
  grid-column: 1 / -1;
  display: grid;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .demo { grid-template-columns: minmax(200px, 22%) 1fr; }
  .demo__toolbar { border-right: 1px solid var(--border); border-bottom: 0 !important; }
}
.demo__toolbar { display: flex; flex-direction: column; border-bottom: 1px solid var(--border); }
.demo__control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding: var(--sp-xs) var(--gutter-half);
  border: 0;
  margin: 0;
  font-size: var(--fs-caption);
}
.demo__control + .demo__control { border-top: 1px solid var(--border); }
.demo__control label { white-space: nowrap; }
.demo__readout { padding: var(--sp-xs) var(--gutter-half); font-size: var(--fs-caption); border-top: 1px solid var(--border); opacity: .7; }

.demo__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(280px, 42vh, 546px);
  padding: var(--sp-md);
  overflow: hidden;
  background: var(--bg);
  transition: background-color var(--t-ui), color var(--t-ui);
}
.demo__stage[data-inverted="true"] { background: var(--fg); color: var(--bg); }

/* Sobreposição de grade de construção */
.demo__stage[data-grid="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, currentColor 0 1px, transparent 1px 12.5%),
    repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 12.5%);
  opacity: .18;
}

/* Interruptor tipo caixa — trilho pequeno, área de toque de 44 px */
.switch { position: relative; display: inline-flex; width: 2.6em; height: 1.4em; flex: none; }
.switch input { min-width: 44px; min-height: 44px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch__track {
  flex: 1;
  border: 1px solid var(--fg);
  border-radius: 999px;
  transition: background-color var(--t-ui);
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 0.2em; left: 0.2em;
  width: 1em; height: 1em;
  border-radius: 999px;
  background: var(--fg);
  transition: transform var(--t-ui);
}
.switch input:checked + .switch__track { background: var(--c-accent-4); }
.switch input:checked + .switch__track::after { transform: translateX(1.2em); background: #000; }

/* Deslizante fino, no estilo da referência */
/* A linha continua fina (1 px), mas o controle tem 44 px de altura
   e o polegar cresce no toque: sem isso o slider é inalcançável no celular */
input[type="range"].thin {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 0;
  background: linear-gradient(var(--fg), var(--fg)) center / 100% 1px no-repeat;
  cursor: pointer;
}
input[type="range"].thin::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: var(--fg);
}
input[type="range"].thin::-moz-range-thumb {
  width: 14px; height: 14px; border: 0;
  border-radius: 999px;
  background: var(--fg);
}
@media (pointer: coarse) {
  input[type="range"].thin::-webkit-slider-thumb { width: 24px; height: 24px; }
  input[type="range"].thin::-moz-range-thumb { width: 24px; height: 24px; }
}

/* ------------------------------------------------------------
   5. GALERIA DE PILARES / CARTÕES DE CONCEITO
   ------------------------------------------------------------ */
.pillars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--border); }
.pillar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  padding: var(--sp-md) var(--gutter-half);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.pillar h3 { margin: 0; font-size: var(--fs-link); font-weight: var(--fw-regular); font-family: var(--font-display); }
.pillar p  { margin: 0; font-size: var(--fs-small); font-weight: var(--fw-light); }

/* ------------------------------------------------------------
   6. FAZER / NÃO FAZER
   ------------------------------------------------------------ */
.dos-donts { grid-column: 1 / -1; display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--border); }
@media (min-width: 768px) { .dos-donts { grid-template-columns: 1fr 1fr; } }
.dos-donts > div { padding: var(--sp-md) var(--gutter-half); border-bottom: 1px solid var(--border); }
.dos-donts > div + div { border-left: 1px solid var(--border); }
.dos-donts h3 { margin: 0 0 var(--sp-sm); font-size: var(--fs-caption); font-weight: var(--fw-medium); text-transform: uppercase; letter-spacing: .08em; }
.dos-donts ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--sp-xs); font-size: var(--fs-body); }
.dos-donts li::before { content: "— "; opacity: .5; }

/* ------------------------------------------------------------
   7. TABELA DE HIERARQUIA TIPOGRÁFICA
   ------------------------------------------------------------ */
.type-spec { grid-column: 1 / -1; border-top: 1px solid var(--border); }
.type-spec__row { display: grid; grid-template-columns: 1fr; gap: var(--sp-sm); padding: var(--sp-md) var(--gutter-half); border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .type-spec__row { grid-template-columns: 1fr 1.2fr 2fr; align-items: start; } }
.type-spec__label { font-size: var(--fs-caption); font-weight: var(--fw-medium); }
.type-spec__label small { font-size: .6em; opacity: .6; margin-left: .3em; }
.type-spec__font { display: block; margin-top: .35em; font-weight: var(--fw-regular); opacity: .7; }
.type-spec__row--weight { align-items: baseline; }
@media (min-width: 768px) { .type-spec__row--weight { grid-template-columns: 1fr 2fr 2fr; } }
.type-spec__row--weight .type-spec__sample { font-size: clamp(20px, 2.1vw, 32px); white-space: nowrap; overflow: hidden; text-overflow: clip; }
.type-spec__row--head { padding-block: var(--sp-xs); }
.type-spec__row--head .type-spec__label { opacity: .7; }
@media (max-width: 767px) { .type-spec__row--head { display: none; } }

/* Escala de pesos 100→900 */
.weight-scale { grid-column: 1 / -1; border-bottom: 1px solid var(--border); padding-block: var(--sp-md); }
.weight-scale__intro { margin: 0 0 var(--sp-sm); font-size: var(--fs-small); opacity: .8; }
.weight-scale__row { padding: var(--sp-xs) var(--gutter-half); }
.weight-scale__family { display: block; font-size: var(--fs-caption); font-weight: var(--fw-medium); opacity: .7; margin-bottom: .4em; }
.weight-scale__cells { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; }
.weight-scale__cell { display: grid; justify-items: start; gap: .2em; }
.weight-scale__cell b { font-weight: inherit; font-size: clamp(22px, 3.4vw, 48px); line-height: 1; }
.weight-scale__cell small { font-size: 11px; opacity: .6; font-family: var(--font-brand); font-weight: 400; }
@media (max-width: 767px) { .weight-scale__cells { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 12px; } }

/* Controles extra da demo de tipo */
.demo__select {
  min-height: 44px;
  max-width: 62%;
  padding: 0 .6em;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}
.demo__control--range { display: grid; grid-template-columns: 1fr auto; row-gap: 0; }
.demo__control--range input { grid-column: 1 / -1; }
.demo__control output { font-variant-numeric: tabular-nums; opacity: .8; }
/* Palco de altura fixa: arrastar o slider não empurra a página */
.demo__stage--type { height: clamp(320px, 46vh, 560px); min-height: 0; overflow: hidden; }
.type-spec__meta { display: grid; grid-template-columns: auto 1fr; gap: 0.1em 1em; font-size: var(--fs-caption); }
.type-spec__meta dt { opacity: .6; margin: 0; }
.type-spec__meta dd { margin: 0; }
.type-spec__sample { font-weight: var(--fw-light); line-height: 1.05; }

/* ------------------------------------------------------------
   8. GRADE DE ÍCONES
   ------------------------------------------------------------ */
.icon-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); border-top: 1px solid var(--border); }
.icon-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xs);
  padding: var(--sp-md) var(--sp-xs);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-caption);
  text-align: center;
}
.icon-cell svg { width: clamp(32px, 5vw, 56px); height: auto; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ------------------------------------------------------------
   9. LISTA DE DOWNLOADS
   ------------------------------------------------------------ */
.download-list { grid-column: 1 / -1; border-top: 1px solid var(--border); }
.download-item {
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--gutter-half);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-h3);
  font-weight: var(--fw-light);
  color: inherit;
  text-decoration: none;
  transition: background-color var(--t-ui), color var(--t-ui);
}
.download-item:hover { background: var(--c-pair-1); color: var(--c-white); }
:root.dark .download-item:hover { background: var(--c-accent-1); color: #000; }
.download-item__meta { font-size: var(--fs-caption); opacity: .7; white-space: nowrap; }
.download-item svg { width: 0.7em; height: 0.7em; flex: none; }

/* ------------------------------------------------------------
   10. MOLDURAS DE APLICAÇÃO (papelaria, social, dispositivos)
   ------------------------------------------------------------ */
.showcase { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--border); }
.showcase__item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  padding: var(--sp-md) var(--gutter-half);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.showcase__frame {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: var(--c-gray);
  color: var(--c-dark-gray);
  font-size: var(--fs-caption);
  overflow: hidden;
}
:root.dark .showcase__frame { background: var(--c-dark-gray); color: var(--c-gray); }
.showcase__frame img, .showcase__frame video { width: 100%; height: 100%; object-fit: cover; }
.showcase__caption { font-size: var(--fs-caption); }

/* Galeria em cards: 3 por linha, o card inteiro na cor de fundo da peça,
   legenda na cor que contrasta com ele. Linhas de 1 px entre os cards
   mantêm a grade do site. Clicar abre o lightbox. */
.showcase--cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.showcase--cards .showcase__item {
  gap: 0;
  padding: 0;
  border: 0;
  background: var(--card-bg, var(--bg));
  color: var(--card-fg, var(--fg));
  cursor: zoom-in;
  transition: filter var(--t-ui);
}
.showcase--cards .showcase__item:hover { filter: brightness(1.04); }
.showcase--cards .showcase__item:focus-visible { outline: 2px solid var(--c-accent-text); outline-offset: -4px; }
/* :root.dark na frente para vencer a regra de moldura do tema escuro */
.showcase--cards .showcase__frame,
:root.dark .showcase--cards .showcase__frame {
  aspect-ratio: 4 / 3;
  background: transparent;
  color: inherit;
}
.showcase--cards .showcase__frame img { transition: transform 600ms cubic-bezier(.2, .8, .2, 1); }
.showcase--cards .showcase__item:hover .showcase__frame img { transform: scale(1.03); }
.showcase--cards [data-fit="contain"] { padding: 12%; }
.showcase--cards [data-fit="contain"] img { object-fit: contain; }
.showcase--cards .showcase__caption {
  padding: var(--sp-sm) var(--gutter-half) var(--sp-md);
  font-size: var(--fs-small);
  line-height: 1.35;
}
@media (max-width: 1079px) { .showcase--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .showcase--cards { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   LIGHTBOX — estilo Apple: fundo desfocado, a peça cresce a partir
   do card de origem, cantos arredondados, sombra longa.
   ------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop {
  background: rgba(8, 10, 24, 0.55);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  backdrop-filter: blur(28px) saturate(1.5);
}
.lightbox__figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 92vw;
}
.lightbox__media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.25);
  transform-origin: 0 0;
  will-change: transform;
}
.lightbox__media img { display: block; max-width: min(92vw, 1400px); max-height: 78vh; width: auto; height: auto; }
.lightbox__media[data-fit="contain"] { padding: clamp(28px, 6vw, 80px); }
.lightbox__media[data-fit="contain"] img { width: min(70vw, 820px); max-height: 60vh; object-fit: contain; }
.lightbox__caption { font-size: 15px; letter-spacing: .01em; opacity: .85; text-align: center; }
.lightbox__btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color var(--t-ui), transform var(--t-ui);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox__btn:active { transform: scale(0.94); }
.lightbox__btn svg { width: 18px; height: 18px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev  { left: 20px; top: 50%; margin-top: -22px; }
.lightbox__next  { right: 20px; top: 50%; margin-top: -22px; }
.lightbox[data-single="true"] .lightbox__prev,
.lightbox[data-single="true"] .lightbox__next { display: none; }
@media (max-width: 767px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; margin-top: 0; }
  .lightbox__prev { left: calc(50% - 56px); }
  .lightbox__next { right: calc(50% - 56px); }
}

/* Marcador de imagem ausente — deixa explícito o que falta trocar */
.placeholder {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(0,0,0,.05) 10px 20px),
    var(--c-gray);
  color: var(--c-dark-gray);
  font-size: var(--fs-caption);
  text-align: center;
  padding: var(--sp-sm);
}
:root.dark .placeholder {
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,.05) 10px 20px),
    var(--c-dark-gray);
  color: var(--c-gray);
}

/* ------------------------------------------------------------
   11. SELETOR DE PAR DE CORES (demonstração interativa)
   ------------------------------------------------------------ */
.pair-picker { grid-column: 1 / -1; display: grid; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .pair-picker { grid-template-columns: minmax(200px, 22%) 1fr; } }
.pair-picker__controls { display: flex; flex-direction: column; border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .pair-picker__controls { border-right: 1px solid var(--border); border-bottom: 0; } }
.pair-picker__swatches { display: flex; flex-wrap: wrap; gap: 0.4em; padding: var(--sp-sm) var(--gutter-half); }
.pair-picker__swatches button {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
}
.pair-picker__swatches button[aria-pressed="true"] { outline: 2px solid var(--fg); outline-offset: 2px; }
.pair-picker__stage {
  display: grid;
  place-items: center;
  min-height: clamp(240px, 36vh, 460px);
  padding: var(--sp-md);
  font-size: var(--fs-h1);
  font-weight: var(--fw-light);
}
