/* Rocksosint · landing
 * Hallmark · genre: atmospheric · macrostructure: bespoke (herói de busca + pilha de folhas) · theme: custom stone/bone/wine · enrichment: Tier C (still Higgsfield) · nav: N9 edge-aligned + N3 rail numerado · footer: Ft5 statement
 * Hallmark · pre-emit critique (2026-09-28): P4 H4 E4 S4 R4 V4 · contrast: pass (40–41) · mobile: pass (34, 49, 50–57) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · icons: pass (30) · slop: 58/58
 * Só consome tokens. Estrutura: herói 100dvh com busca central; seções como folhas empilhadas (stack.js).
 */

/* ============ Herói ============ */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100dvh;
  /* base livre da aba (--sheet-tab-h) da primeira folha, que aparece no fim do herói */
  padding: calc(72px + var(--sp-6)) var(--gutter) calc(var(--sp-5) + var(--sheet-tab-h));
  overflow: hidden;
}

.hero__bg,
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__bg {
  z-index: -1;
}

.hero__bg img {
  object-fit: cover;
  object-position: 60% 55%;
}

/* Escurecimento funcional: garante contraste AA do título sobre a pedra.
 * Mais denso no centro (onde fica o texto), abre nas bordas pra o veio aparecer. */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 42% 38% at 50% 46%, var(--scrim-soft), transparent 100%),
    linear-gradient(to bottom, var(--scrim-soft), transparent 22%, transparent 78%, var(--bg));
}

.hero__content {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: var(--sp-5);
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.hero__title {
  font-size: var(--text-display);
  line-height: 0.98;
}

.hero__title .t-light {
  display: block;
}

/* Palavra que gira no titulo ("one name." -> "one email." ...). Sai subindo e
   entra de baixo; a troca do texto acontece com ela invisivel. */
.hero__word {
  display: inline-block;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.hero__word.is-out {
  opacity: 0;
  transform: translateY(-0.22em);
}

.hero__word.is-in {
  opacity: 0;
  transform: translateY(0.22em);
  transition: none;
}

.hero__sub {
  max-width: 38rem;
  color: var(--text);
  font-size: var(--text-md);
  line-height: 1.45;
}

.hero__search {
  margin-top: var(--sp-3);
  text-align: start;
}

/* Setinha de "mais tipos": só existe no celular */
.chip--more {
  display: none;
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-top: var(--sp-7);
}

.hero__audience {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Entrada do herói: uma única sequência no carregamento (título, texto, busca) */
.hero__content > * {
  animation: rk-rise var(--dur-long) var(--ease-out) both;
}

.hero__content > :nth-child(2) {
  animation-delay: 60ms;
}

.hero__content > :nth-child(3) {
  animation-delay: 120ms;
}

@media (max-width: 600px) {
  .hero {
    padding-top: calc(72px + var(--sp-5));
  }

  .hero__content {
    justify-items: start;
    text-align: start;
  }

  .hero__sub {
    font-size: var(--text-base);
  }

  /* Celular: campo e seta na mesma linha; embaixo os tipos quebrando linha
     (antes o último chip ficava cortado atrás da seta) */
  .hero__search {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--sp-2) var(--sp-2);
    padding: var(--sp-3);
  }

  .hero__search .search__bar {
    display: contents;
  }

  .hero__search .search__input {
    grid-column: 1;
    grid-row: 1;
    min-height: 48px;
    padding-inline: var(--sp-2);
    font-size: var(--text-base);
  }

  .hero__search .search__submit {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0;
  }

  /* Uma linha só: Detect, Email, Phone, Username e a setinha; Domain e IP abrem
     embaixo quando toca na setinha (igual ao "More" do dashboard) */
  .hero__search .search__types {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    gap: 6px;
    overflow: visible;
  }

  .hero__search .chip {
    flex: none;
    min-height: 36px;
    padding-inline: 10px;
  }

  .hero__search .chip--more {
    display: inline-flex;
    order: 1;
    justify-content: center;
    width: 34px;
    padding: 0;
  }

  .hero__search .chip--more .icon {
    width: 18px;
    height: 18px;
    transition: transform var(--dur-short) var(--ease-out);
  }

  .hero__search.is-more-open .chip--more .icon {
    transform: rotate(180deg);
  }

  .hero__search .chip--extra {
    display: none;
    order: 2;
  }

  /* Abertos, ou um deles escolhido pela detecção: aparecem */
  .hero__search.is-more-open .chip--extra,
  .hero__search .chip--extra[aria-pressed="true"] {
    display: inline-flex;
  }

  .hero__search .search__hint {
    grid-column: 1 / -1;
    grid-row: 3;
    padding-inline: var(--sp-2);
  }
}

/* Atalho de teclado não faz sentido em tela de toque */
@media (hover: none) {
  .hint-kbd {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content > * {
    animation: none;
  }
}

/* ============ Pilha de folhas ============
 * Scroll nativo. Cada camada fica sticky; a seguinte sobe por cima.
 * --stick-offset: altura da aba de dossiê (a aba da folha de cima continua visível).
 * --stick-top: negativo quando a camada é mais alta que a tela (stack.js).
 * --cover: 0..1 enquanto a camada é coberta (stack.js).
 */

.stack__layer {
  --stick-offset: 0px;
  position: sticky;
  top: calc(var(--stick-offset) + var(--stick-top, 0px));
  z-index: calc(var(--i, 0) + 1);
  min-height: calc(100dvh - var(--stick-offset));
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--cover, 0) * 0.04));
}

.stack__layer.sheet {
  --stick-offset: var(--sheet-tab-h);
  box-shadow: var(--shadow-sheet);
}

/* Camada coberta escurece: comunica profundidade (a folha nova está por cima) */
.stack__layer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: var(--stone-950);
  opacity: calc(var(--cover, 0) * 0.85);
  pointer-events: none;
}

.stack--static .stack__layer {
  position: relative;
  top: auto;
  transform: none;
}

.stack--static .stack__layer::after {
  display: none;
}

.stack--static .stack__layer.sheet {
  margin-top: var(--sheet-tab-h);
}

.sheet__body {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: var(--sp-9) var(--gutter);
}

/* Nav some ao rolar pra baixo, volta ao rolar pra cima (libera a aba das folhas) */
.nav {
  transition:
    transform var(--dur-short) var(--ease-out),
    background-color var(--dur-short) var(--ease-out),
    border-color var(--dur-short) var(--ease-out);
}

.nav[data-hidden="true"]:not(:focus-within):not([data-open="true"]) {
  transform: translateY(-100%);
  transition-timing-function: var(--ease-in);
}

/* ============ Folha: comparação (pedra) ============
 * Tabela larga e grande, ocupa a folha. Coluna Rocksosint = faixa de superfície com fio vinho.
 * Sim/não/parcial = forma (check, traço, meia-lua) + palavra oculta pra leitor de tela.
 */

.cmp__grid {
  display: grid;
  gap: var(--sp-7);
}

.cmp__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--sp-5);
}

.cmp__table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.cmp__table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  table-layout: fixed;
}

.cmp__table th,
.cmp__table td {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: var(--rule) solid var(--line);
  text-align: start;
  vertical-align: middle;
}

.cmp__table thead th:first-child {
  width: 34%;
}

.cmp__table thead th {
  padding-block: var(--sp-6) var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-display);
  color: var(--text-muted);
}

.cmp__table thead .cmp__us {
  font-weight: var(--weight-heavy);
  color: var(--text-strong);
  border-radius: var(--r-md) var(--r-md) 0 0;
  box-shadow: inset 0 3px 0 var(--accent);
  background: linear-gradient(180deg, color-mix(in oklch, var(--accent) 22%, var(--surface-1)) 0%, var(--surface-1) 100%);
}

.cmp__table tbody th {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--text-strong);
}

.cmp__table td {
  font-size: var(--text-md);
  color: var(--text-muted);
}

.cmp__table .cmp__us {
  background: var(--surface-1);
  color: var(--text-strong);
}

.cmp__table tbody tr:last-child .cmp__us {
  border-radius: 0 0 var(--r-md) var(--r-md);
}

.cmp__table tbody tr {
  transition: background-color var(--dur-short) var(--ease-out);
}

.cmp__table tbody tr:hover {
  background: color-mix(in oklch, var(--surface-1) 60%, transparent);
}

/* Linha de preço: o número é o argumento, em tipo de display */
.cmp__row--price td {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-light);
  letter-spacing: var(--tracking-display);
}

.cmp__row--price .cmp__val--us {
  font-size: var(--text-2xl);
  font-weight: var(--weight-heavy);
  color: var(--text-strong);
}

.cmp__mark {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  color: var(--text-muted);
}

.cmp__mark svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cmp__mark .cmp__half {
  fill: currentColor;
  stroke: none;
}

.cmp__mark--no {
  border-color: var(--line);
  color: var(--stone-500);
}

.cmp__us .cmp__mark--yes {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bone-50);
}

.cmp__note {
  margin-top: var(--sp-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Celular: sem rolagem lateral. A tabela vira grade: o nome da linha ocupa a largura
   toda e as três empresas ficam lado a lado embaixo, alinhadas com o cabeçalho */
@media (max-width: 700px) {
  .cmp__table-wrap {
    overflow: visible;
  }

  .cmp__table,
  .cmp__table thead,
  .cmp__table tbody {
    display: block;
    min-width: 0;
  }

  .cmp__table tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cmp__table thead th:first-child {
    display: none;
  }

  .cmp__table th,
  .cmp__table td {
    padding: var(--sp-3) var(--sp-2);
    text-align: center;
  }

  .cmp__table thead th {
    display: flex;
    align-items: end;
    justify-content: center;
    padding-block: var(--sp-5) var(--sp-4);
    font-size: var(--text-md);
    line-height: 1.15;
    text-align: center;
  }

  .cmp__table tbody th {
    grid-column: 1 / -1;
    padding: var(--sp-4) 0 var(--sp-1);
    border-bottom: 0;
    text-align: start;
    font-size: var(--text-sm);
    color: var(--text-muted);
  }

  .cmp__table td {
    display: grid;
    place-items: center;
    min-height: 56px;
    font-size: var(--text-sm);
    line-height: 1.3;
  }

  .cmp__row--price td {
    font-size: var(--text-md);
  }

  .cmp__row--price .cmp__val--us {
    font-size: var(--text-lg);
  }

  .cmp__mark {
    width: 1.875rem;
    height: 1.875rem;
  }

  .cmp__mark svg {
    width: 1.125rem;
    height: 1.125rem;
  }

  /* A coluna da Rocksosint continua destacada: fundo em todas as células dela */
  .cmp__table tbody tr:last-child .cmp__us {
    border-radius: 0 0 var(--r-sm) var(--r-sm);
  }

  .cmp__table thead .cmp__us {
    border-radius: var(--r-sm) var(--r-sm) 0 0;
  }

  .cmp__table tbody tr:hover {
    background: none;
  }
}

/* ============ Folha: planos (carvão) ============
 * Três colunas num painel só, separadas por fio. Preço em display gigante, créditos como
 * segundo número. Intermediate leva o fio vinho e o botão cheio (sem selo de "mais popular":
 * não temos dado pra afirmar isso).
 */

.plans__grid {
  display: grid;
  gap: var(--sp-7);
}

.plans__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--sp-4) var(--sp-7);
}

.plans__intro .sheet__title {
  max-width: 16ch;
}

.plans__base-line {
  max-width: 30ch;
  color: var(--text-muted);
}

.plans__annual {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}


/* ============ Folha: instituições (pedra) ============
 * Diretório: cada público é uma linha inteira clicável (alvo grande, destino real).
 */

.inst__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--sp-8);
  align-items: start;
}

.inst__intro {
  display: grid;
  justify-items: start;
  gap: var(--sp-4);
}

.inst__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--rule) solid var(--line);
}

.inst__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-2) var(--sp-5);
  padding: var(--sp-5) var(--sp-4);
  border-bottom: var(--rule) solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background-color var(--dur-micro) var(--ease-out);
}

.inst__row:hover {
  background: var(--surface-1);
}

.inst__row:focus-visible {
  outline-offset: -2px;
}

.inst__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--tracking-heading);
  color: var(--text-strong);
}

.inst__who {
  grid-column: 1;
  color: var(--text-muted);
}

.inst__cta {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--text-strong);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.3em;
  transition: text-decoration-color var(--dur-micro) var(--ease-out);
}

.inst__row:hover .inst__cta {
  text-decoration-color: var(--accent);
}

@media (max-width: 900px) {
  .inst__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .inst__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .inst__cta {
    grid-column: 1;
    grid-row: auto;
    margin-top: var(--sp-2);
  }
}

/* ============ Folha: FAQ (osso) ============ */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--sp-8);
  align-items: start;
}

.faq__intro {
  display: grid;
  gap: var(--sp-4);
}

.faq__intro a {
  color: var(--text-strong);
}

.faq__q {
  font-size: inherit;
  letter-spacing: normal;
}

.accordion__panel p {
  max-width: 62ch;
}

@media (max-width: 900px) {
  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============ Folhas visuais (feedback do dono: imagem primeiro, pouco texto) ============ */

.sheet__title {
  max-width: 18ch;
  font-size: var(--text-display);
  line-height: 0.98;
  letter-spacing: var(--tracking-display);
}

.sheet__line {
  max-width: 38ch;
  font-size: var(--text-md);
  line-height: 1.45;
  color: var(--text);
}

/* Foto de produto/objeto: moldura mínima, a imagem é o conteúdo */
.shot {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface-1);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot figcaption {
  padding: var(--sp-4) var(--sp-5);
  color: var(--text);
}

/* Como funciona: tríptico de fotos (pista → fios → achado), só o passo escrito */
.how__body {
  display: grid;
  gap: var(--sp-7);
}

.how__trip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.how__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface-1);
}

.how__frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Escurecimento funcional na base pra legenda sobre a foto */
.how__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--scrim) 0%, transparent 45%);
}

.how__cap {
  position: absolute;
  left: var(--sp-5);
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: 1;
  display: grid;
  gap: var(--sp-1);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-heavy);
  line-height: 1.1;
  letter-spacing: var(--tracking-heading);
  color: var(--text-strong);
}

.how__num {
  font-weight: var(--weight-light);
  font-size: var(--text-md);
  color: var(--text-muted);
}

/* Módulos: grade de ícones; cada módulo é um botão que volta à busca com o tipo escolhido */
.mods__body {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--sp-8);
  align-items: start;
}

.mods__side {
  display: grid;
  gap: var(--sp-6);
}

.mods__shot img {
  aspect-ratio: 4 / 5;
}

.mods__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mod {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: var(--sp-1) var(--sp-4);
  width: 100%;
  height: 100%;
  padding: var(--sp-5);
  border: var(--rule) solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-1);
  color: inherit;
  text-align: start;
  transition: border-color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}

/* Hover no vinho sólido, igual à caixa de busca com Deep ligado no dashboard */
button.mod:hover,
button.mod:focus-visible {
  border-color: var(--wine-500);
  background: var(--wine-900);
}

button.mod:hover .mod__icon,
button.mod:focus-visible .mod__icon {
  color: var(--bone-50);
}

button.mod:hover .mod__desc,
button.mod:focus-visible .mod__desc {
  color: oklch(84% 0.030 20);
}

button.mod:active {
  transform: translateY(1px);
}

.mod__icon {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  color: var(--text-strong);
  transition: color var(--dur-micro) var(--ease-out);
}

.mod__name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--tracking-heading);
  color: var(--text-strong);
}

.mod__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Breach detection: não é um tipo de busca, roda em todas; sem hover de botão */
.mod--static {
  border-style: dashed;
  background: transparent;
}

.mod--static .mod__icon {
  color: var(--text-muted);
}

/* Resultado: foto sangrada ocupa a folha; texto sobre a parte escurecida */
.result {
  display: grid;
  overflow: hidden;
}

.result__bleed {
  position: relative;
  grid-area: 1 / 1;
  margin: 0;
  border-radius: inherit;
  overflow: hidden;
}

.result__bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

/* Escurecimento funcional pra contraste do texto sobre a foto */
.result__bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--scrim) 0%, var(--scrim) 30%, var(--scrim-soft) 55%, transparent 85%);
}

.result__body {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  /* texto no meio da folha (no pé ficava baixo demais, colado na borda) */
  align-content: center;
  justify-items: start;
  gap: var(--sp-5);
  min-height: calc(100dvh - var(--sheet-tab-h));
}

/* Confiança (vinho): foto + três frases curtas */
.trust__body {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--sp-8);
  align-items: center;
}

.trust__shot img {
  aspect-ratio: 4 / 3;
}

.trust__side {
  display: grid;
  gap: var(--sp-6);
}

.trust__heads {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--rule) solid var(--line-strong);
}

/* Cada frase: ícone à esquerda, frase forte e uma linha de prova embaixo */
.trust__heads li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: var(--sp-4);
  row-gap: var(--sp-1);
  padding: var(--sp-4) 0;
  border-bottom: var(--rule) solid var(--line-strong);
}

.trust__icon {
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  margin-top: 4px;
  color: var(--text-strong);
}

.trust__head {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--tracking-heading);
  color: var(--text-strong);
}

.trust__proof {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
}

.trust__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

@media (max-width: 900px) {
  .mods__body,
  .trust__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .mods__shot img {
    aspect-ratio: 16 / 10;
  }

  .how__trip {
    grid-template-columns: minmax(0, 1fr);
  }

  .how__frame img {
    aspect-ratio: 4 / 3;
  }

  /* Celular: a foto fica toda atrás do texto, então o véu escuro cobre a folha inteira */
  .result__bleed img {
    object-position: 70% 50%;
  }

  .result__bleed::after {
    background: linear-gradient(0deg, var(--scrim) 20%, var(--scrim-soft) 100%);
  }

}

.sheet__title .t-light {
  display: block;
}

/* Celular: grade compacta de 2 colunas, só ícone + nome (a lista de 10 cards
   empilhados com descrição ficava longa demais). A descrição vira title/aria. */
@media (max-width: 600px) {
  .mods__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-2);
  }

  .mod {
    grid-template-rows: auto;
    align-items: center;
    gap: var(--sp-3);
    min-height: 56px;
    padding: var(--sp-3);
  }

  .mod__icon {
    grid-row: auto;
    width: 22px;
    height: 22px;
  }

  .mod__name {
    font-size: var(--text-base);
  }

  .mod__desc {
    display: none;
  }

  .mods__shot img {
    aspect-ratio: 16 / 9;
  }
}

/* ============ Rail numerado das folhas (Hallmark N3, indicador numerado) ============
 * Mesmos números das abas de dossiê. Só aparece com margem lateral de sobra (≥1280px);
 * abaixo disso o menu da nav cobre a navegação. O número da folha em tela fica vinho.
 */

.rail-index {
  position: fixed;
  top: 50%;
  left: var(--sp-4);
  z-index: var(--z-nav);
  display: none;
  gap: var(--sp-1);
  transform: translateY(-50%);
}

@media (min-width: 1280px) {
  .rail-index {
    display: grid;
  }
}

.rail-index__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 32px;
  padding-inline: var(--sp-2);
  border-radius: var(--r-xs);
  color: var(--text-muted);
  text-decoration: none;
}

.rail-index__num {
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* Nome da folha só aparece no hover/foco: o rail fica estreito dentro da margem */
.rail-index__label {
  position: absolute;
  left: calc(100% + var(--sp-2));
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-xs);
  background: var(--surface-2);
  color: var(--text-strong);
  font-size: var(--text-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-micro) var(--ease-out);
}

.rail-index__item:hover .rail-index__label,
.rail-index__item:focus-visible .rail-index__label {
  opacity: 1;
}

.rail-index__item:hover {
  color: var(--text-strong);
}

.rail-index__item[aria-current="true"] {
  color: var(--text-strong);
}

.rail-index__item[aria-current="true"]::before {
  content: "";
  position: absolute;
  left: calc(var(--sp-4) * -1);
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--accent);
}

/* Sobre o herói o rail some: o herói tem uma tarefa só (a busca) */
.rail-index[data-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.rail-index {
  transition: opacity var(--dur-short) var(--ease-out);
}

.sheet__num {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Telas estreitas (≤380px): menos respiro na caixa; e abaixo de 370px o Username
   também vai pra trás da setinha, pra linha dos tipos nunca quebrar */
@media (max-width: 380px) {
  .hero__search {
    padding: var(--sp-2);
  }

  .hero__search .chip {
    padding-inline: 8px;
  }
}

@media (max-width: 369px) {
  .hero__search .chip--narrow-extra {
    display: none;
    order: 2;
  }

  .hero__search.is-more-open .chip--narrow-extra,
  .hero__search .chip--narrow-extra[aria-pressed="true"] {
    display: inline-flex;
  }
}
