/* ==========================================================
   ROCHA STORE — biolink
   Conceito: a parede de ganchos de uma loja de acessórios.
   Cada categoria é uma cartela de blister pendurada num pino,
   com a bolha no formato da rocha do logo.
   ========================================================== */

:root {
  /* cor */
  --parede: #0B2F7E;        /* cobalto dos posts da loja */
  --parede-alta: #0F3A95;
  --parede-baixa: #072258;
  --furo: rgba(2, 12, 44, .52);
  --marinho: #0B1C44;       /* tinta principal */
  --rs: #1E3F8F;            /* azul do monograma RS */
  --pedra: #9298A2;         /* a rocha do logo */
  --cartao: #F6F8FC;        /* papel-cartão da cartela */
  --ceu: #AFCBFF;           /* luz da vitrine */
  --raio: #FFD447;          /* o ⚡ da bio — usado só no raio */
  --fita: #C3C7CE;          /* fita "NOVIDADE" dos posts */
  --branco-70: rgba(255, 255, 255, .72);

  /* tipo */
  --f-display: "Anybody", "Arial Narrow", system-ui, sans-serif;
  --f-texto: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* medidas */
  --coluna: 560px;
  --margem: 16px;
  --raio-cartao: 14px;
  --passo-furo: 22px;

  /* movimento */
  --mola: cubic-bezier(.3, .7, .3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

/* o html tem fundo próprio para que o fundo do body cubra a página inteira
   (e não só a primeira tela) */
html {
  background: var(--parede-baixa);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  background-color: var(--parede);
  /* parede perfurada: furo escuro + borda inferior iluminada + luz de vitrine */
  background-image:
    radial-gradient(circle at 50% 50%, var(--furo) 0 1.9px, transparent 2.5px),
    radial-gradient(circle at 50% calc(50% + 1.2px), rgba(175, 203, 255, .14) 0 2.1px, transparent 2.8px),
    radial-gradient(120% 620px at 50% 0, rgba(130, 172, 255, .42), rgba(130, 172, 255, 0) 70%),
    linear-gradient(180deg, var(--parede-alta) 0, var(--parede) 40%, var(--parede-baixa) 100%);
  background-size: var(--passo-furo) var(--passo-furo), var(--passo-furo) var(--passo-furo), 100% 100%, 100% 100%;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  background-position: center top;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* grão da chapa pintada */
body { position: relative; }
body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ceu);
  outline-offset: 4px;
  border-radius: 6px;
}

.pular {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -160%);
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cartao);
  color: var(--marinho);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform .2s ease;
}
.pular:focus-visible { transform: translate(-50%, 0); }

.pagina {
  position: relative;
  z-index: 1;
  width: min(100% - var(--margem) * 2, var(--coluna));
  margin-inline: auto;
  padding: max(40px, env(safe-area-inset-top)) 0 max(32px, env(safe-area-inset-bottom));
}

/* ---------------------------------------------------------- */
/* Topo                                                         */
/* ---------------------------------------------------------- */

.topo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.emblema {
  position: relative;
  width: 168px;
  margin-bottom: 18px;
}
/* o halo de luz atrás do logo, como no post "Novidade" */
.emblema::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: 290px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 228, 255, .62), rgba(150, 186, 255, .22) 52%, rgba(150, 186, 255, 0) 100%);
  pointer-events: none;
}
.emblema__svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 14px 18px rgba(2, 12, 44, .45));
}
.emblema__rocha {
  stroke: #161B24;
  stroke-width: 3;
  stroke-linejoin: round;
}
.emblema__rs {
  font-family: var(--f-display);
  font-stretch: 100%;
  font-weight: 760;
  font-size: 50px;
  letter-spacing: -4px;
  fill: var(--rs);
}

.marca {
  margin: 0;
  font-family: var(--f-display);
  font-stretch: 128%;
  font-weight: 860;
  font-size: clamp(30px, 9vw, 46px);
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.marca__raio {
  display: inline-block;
  width: .46em;
  height: .62em;
  margin-left: .14em;
  vertical-align: .02em;
  fill: var(--raio);
  filter: drop-shadow(0 0 10px rgba(255, 212, 71, .35));
}

.slogan {
  margin: 12px 0 0;
  font-family: var(--f-display);
  font-stretch: 92%;
  font-weight: 560;
  font-size: 18px;
  letter-spacing: .005em;
  color: var(--ceu);
}

.apresentacao {
  max-width: 34ch;
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, .8);
  text-wrap: pretty;
}

/* ---------------------------------------------------------- */
/* Botões                                                       */
/* ---------------------------------------------------------- */

.acoes {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 26px;
}

.botao {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  text-decoration: none;
  border-radius: 16px;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.botao svg { flex: none; }
.botao__icone { width: 26px; height: 26px; }
.botao__seta {
  width: 20px;
  height: 20px;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}
.botao__texto { display: grid; text-align: left; }
.botao__rotulo { font-weight: 600; font-size: 16px; line-height: 1.2; }
.botao__apoio { font-size: 13px; font-weight: 400; opacity: .7; }

.botao--principal {
  padding: 14px 18px;
  min-height: 64px;
  background: var(--cartao);
  color: var(--marinho);
  box-shadow:
    inset 0 1px 0 #fff,
    0 18px 30px -16px rgba(2, 10, 40, .8),
    0 3px 8px -3px rgba(2, 10, 40, .4);
}
.botao--principal .botao__icone { fill: var(--rs); }

.botao--secundario {
  justify-content: center;
  padding: 10px 18px;
  color: #fff;
  border: 1px solid rgba(175, 203, 255, .36);
  background: rgba(7, 34, 88, .35);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.botao--secundario .botao__icone {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.botao--secundario .cheio { fill: currentColor; stroke: none; }
.botao--secundario .botao__rotulo { font-size: 15px; font-weight: 500; }

.botao--linha {
  justify-content: space-between;
  padding: 14px 18px;
  min-height: 56px;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .55);
}

@media (hover: hover) {
  .botao:hover .botao__seta { transform: translateX(3px); }
  .botao--principal:hover { transform: translateY(-1px); }
  .botao--secundario:hover { background: rgba(7, 34, 88, .6); border-color: rgba(175, 203, 255, .6); }
  .botao--linha:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
}
.botao:active { transform: translateY(1px); }

/* ---------------------------------------------------------- */
/* Cabeçalhos de seção                                          */
/* ---------------------------------------------------------- */

.secao-cabeca { margin-bottom: 22px; text-align: center; }
.secao-cabeca h2 {
  margin: 0;
  font-family: var(--f-display);
  font-stretch: 104%;
  font-weight: 760;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.secao-cabeca p {
  max-width: 38ch;
  margin: 6px auto 0;
  font-size: 14px;
  font-weight: 350;
  color: var(--branco-70);
  text-wrap: pretty;
}

/* ---------------------------------------------------------- */
/* A parede                                                     */
/* ---------------------------------------------------------- */

.parede { margin-top: 64px; }

.ganchos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 14px;
}

.gancho {
  /* o pino fica 15px abaixo do topo da cartela: é dali que ela balança */
  transform-origin: 50% 15px;
}

.etiqueta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 34px 12px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--marinho);
  background:
    linear-gradient(180deg, #fff 0, var(--cartao) 38%, #ECF1F9 100%);
  border-radius: var(--raio-cartao) var(--raio-cartao) 10px 10px;
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(11, 28, 68, .08),
    0 20px 26px -16px rgba(2, 10, 40, .85),
    0 6px 10px -6px rgba(2, 10, 40, .5);
  transform-origin: 50% 15px;
  -webkit-tap-highlight-color: transparent;
}
.etiqueta:focus-visible { outline-offset: 5px; border-radius: var(--raio-cartao); }

/* o furo "euro slot" da cartela e o pino que a segura */
.furo {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 34px;
  height: 14px;
  transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 14'%3E%3Cpath fill='%23082464' d='M17 0a6 6 0 0 1 5.7 4.2H30a4 4 0 0 1 0 8H4a4 4 0 0 1 0-8h7.3A6 6 0 0 1 17 0Z'/%3E%3Cpath fill='none' stroke='%23fff' stroke-opacity='.9' d='M3.6 12.6h26.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pino {
  position: absolute;
  left: 50%;
  top: 1px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0, #D4D9E2 30%, #8A91A0 70%, #4B5262 100%);
  box-shadow: 0 2px 2px rgba(0, 0, 0, .45);
}

.etiqueta__bolha {
  display: block;
  width: min(100%, 128px);
  margin-top: 2px;
}
.etiqueta__bolha svg,
.cartela__bolha svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* a aba plana do plástico, colada na cartela em volta da bolha */
.bolha__aba {
  fill: rgba(255, 255, 255, .55);
  stroke: rgba(11, 28, 68, .09);
  stroke-width: 1;
}
.bolha__casca {
  stroke: rgba(30, 63, 143, .22);
  stroke-width: 1;
  filter: drop-shadow(0 3px 3px rgba(11, 28, 68, .14));
}
.bolha__reflexo { fill: url(#brilho); opacity: .8; }
.bolha__icone {
  fill: none;
  stroke: var(--rs);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bolha__icone .cheio { fill: var(--rs); stroke: none; }

.etiqueta__nome {
  margin-top: 12px;
  font-family: var(--f-display);
  font-stretch: 84%;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.08;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-wrap: balance;
}
.etiqueta__detalhe {
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(11, 28, 68, .62);
}
.etiqueta__acao {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #2152C2;
}
.etiqueta__acao svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

/* o gancho vazio: espaço do produto que você não encontrou */
.etiqueta--vazia {
  color: #fff;
  background: rgba(7, 34, 88, .28);
  box-shadow: none;
  outline: 1.5px dashed rgba(175, 203, 255, .55);
  outline-offset: -1.5px;
}
.etiqueta--vazia:focus-visible { outline: 3px solid var(--ceu); outline-offset: 5px; }
.etiqueta--vazia .furo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 14'%3E%3Cpath fill='none' stroke='%23AFCBFF' stroke-opacity='.7' stroke-dasharray='2 2' d='M17 .5a5.5 5.5 0 0 1 5.3 4.2H30a3.5 3.5 0 0 1 0 7H4a3.5 3.5 0 0 1 0-7h7.7A5.5 5.5 0 0 1 17 .5Z'/%3E%3C/svg%3E");
}
.etiqueta--vazia .bolha__aba { display: none; }
.etiqueta--vazia .bolha__casca {
  stroke: rgba(175, 203, 255, .6);
  stroke-dasharray: 4 4;
  filter: none;
}
.etiqueta--vazia .bolha__icone { stroke: #fff; }
.etiqueta--vazia .etiqueta__acao { color: var(--ceu); }

@media (hover: hover) {
  .etiqueta:hover { animation: balanco 1.1s var(--mola); }
  .etiqueta:hover .etiqueta__acao svg { transform: translateX(3px); }
  .etiqueta--vazia:hover { background: rgba(7, 34, 88, .45); }
}
.etiqueta:focus-visible { animation: balanco 1.1s var(--mola); }
.etiqueta:active { animation: balanco .9s var(--mola); }

@keyframes balanco {
  0%   { rotate: 0deg; }
  18%  { rotate: 4.5deg; }
  40%  { rotate: -3deg; }
  60%  { rotate: 1.6deg; }
  80%  { rotate: -.6deg; }
  100% { rotate: 0deg; }
}

/* entrada: cada cartela é pendurada no pino e assenta balançando */
.vai-pendurar .gancho { opacity: 0; }
.pendurada .gancho {
  animation: pendurar 1.15s var(--mola) both;
  animation-delay: calc(var(--i) * 75ms);
}
@keyframes pendurar {
  0%   { opacity: 0; translate: 0 -22px; rotate: -8deg; }
  30%  { opacity: 1; translate: 0 0; rotate: 6deg; }
  52%  { rotate: -3.5deg; }
  72%  { rotate: 1.6deg; }
  88%  { rotate: -.5deg; }
  100% { opacity: 1; translate: 0 0; rotate: 0deg; }
}

.sem-js {
  padding: 16px;
  border-radius: 12px;
  background: rgba(7, 34, 88, .5);
  font-size: 14px;
  text-align: center;
}

/* ---------------------------------------------------------- */
/* Sorteio — cartela larga, dois pinos                          */
/* ---------------------------------------------------------- */

.sorteio { margin-top: 56px; }
.sorteio[hidden] { display: none; }

.cartela {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38%;
  align-items: center;
  gap: 8px;
  padding: 40px 18px 22px 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--marinho);
  background: linear-gradient(180deg, #fff 0, var(--cartao) 40%, #E9EFF8 100%);
  border-radius: var(--raio-cartao);
  box-shadow:
    inset 0 1px 0 #fff,
    0 22px 30px -18px rgba(2, 10, 40, .9),
    0 6px 10px -6px rgba(2, 10, 40, .5);
  transform-origin: 50% 15px;
  -webkit-tap-highlight-color: transparent;
}
.cartela:focus-visible { outline-offset: 5px; border-radius: var(--raio-cartao); }
.furo--esq { left: 22%; }
.furo--dir { left: 78%; }

.cartela__texto { position: relative; z-index: 1; display: grid; justify-items: start; }

.selo {
  display: inline-block;
  padding: 4px 9px 4px;
  border-radius: 6px;
  background: var(--rs);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cartela__titulo {
  margin-top: 10px;
  font-family: var(--f-display);
  font-stretch: 92%;
  font-weight: 820;
  font-size: clamp(20px, 5.6vw, 25px);
  line-height: 1.04;
  text-transform: uppercase;
  text-wrap: balance;
}
.cartela__corpo {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(11, 28, 68, .74);
  text-wrap: pretty;
}
.cartela__acao {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #2152C2;
}
.cartela__acao svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}
.cartela__bolha { position: relative; z-index: 1; align-self: center; margin-bottom: 18px; }

/* a fita "NOVIDADE" dos posts da loja, atravessando o canto */
.fita {
  position: absolute;
  right: -58px;
  bottom: 30px;
  z-index: 2;
  width: 240px;
  padding: 4px 0;
  transform: rotate(-38deg);
  background: var(--fita);
  color: #263043;
  box-shadow: 0 2px 6px rgba(11, 28, 68, .25);
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}
.fita span {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

@media (hover: hover) {
  .cartela:hover { animation: balanco-curto 1.2s var(--mola); }
  .cartela:hover .cartela__acao svg { transform: translateX(3px); }
}
@keyframes balanco-curto {
  0%, 100% { rotate: 0deg; }
  25% { rotate: 1deg; }
  55% { rotate: -.6deg; }
  80% { rotate: .25deg; }
}

/* ---------------------------------------------------------- */
/* Sob encomenda                                                */
/* ---------------------------------------------------------- */

.encomenda {
  margin-top: 64px;
  padding: 30px 20px 22px;
  border-radius: 20px;
  background: rgba(5, 24, 66, .55);
  box-shadow: inset 0 0 0 1px rgba(175, 203, 255, .16);
}
.encomenda .secao-cabeca { text-align: left; }
.encomenda .secao-cabeca p { margin-left: 0; }

.passos {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 0;
}
.passos li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding-bottom: 18px;
}
.passos li:last-child { padding-bottom: 0; }
/* a linha que liga um passo ao próximo */
.passos li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: 4px;
  width: 1.5px;
  background: linear-gradient(rgba(175, 203, 255, .5), rgba(175, 203, 255, .1));
}
.passos__n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(175, 203, 255, .6);
  font-family: var(--f-display);
  font-stretch: 80%;
  font-weight: 800;
  font-size: 16px;
  color: var(--ceu);
}
.passos p {
  margin: 0;
  padding-top: 5px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .9);
}

/* ---------------------------------------------------------- */
/* Rodapé                                                       */
/* ---------------------------------------------------------- */

.rodape {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(175, 203, 255, .18);
  text-align: center;
  font-size: 13.5px;
  color: var(--branco-70);
}
.rodape p { margin: 0; }
.rodape__marca {
  font-family: var(--f-display);
  font-stretch: 128%;
  font-weight: 860;
  font-size: 17px;
  text-transform: uppercase;
  color: #fff;
}
.rodape__pagamento { margin-top: 6px !important; }
.rodape__links { margin-top: 10px !important; display: flex; justify-content: center; gap: 10px; }
.rodape__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 6px;
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(175, 203, 255, .5);
  text-underline-offset: 4px;
}
.rodape__links span { align-self: center; }

/* ---------------------------------------------------------- */
/* Telas maiores: a parede abre em 4 colunas                    */
/* ---------------------------------------------------------- */

@media (min-width: 420px) {
  .ganchos { gap: 30px 18px; }
}

@media (min-width: 920px) {
  .pagina { padding-top: 64px; }
  .parede {
    width: min(100vw - 64px, 920px);
    margin-left: 50%;
    transform: translateX(-50%);
  }
  .ganchos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 22px; }
}

/* ---------------------------------------------------------- */
/* Movimento reduzido                                           */
/* ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .vai-pendurar .gancho { opacity: 1; }
}
