/* ============================================================
   Clipopeia — estilos
   Tokens e medidas extraídos do protótipo (Figma · Home / PIX /
   Dispositivo / Contato). Layout fluido seguindo o auto-layout:
   conteúdo centralizado, max-width 928px, padding lateral 16px.
   ============================================================ */

:root {
  --bg: #141414;
  --black: #000;
  --white: #fff;
  --border: #333;
  --gray-card: #2d2d2d;
  --gray-input: #bebebe;
  --yellow: #ffbd05;
  --yellow-light: #fed561;
  --error: #d93025;

  --font-rubik: "Rubik", system-ui, sans-serif;
  --font-jakarta: "Plus Jakarta Sans", system-ui, sans-serif;

  --maxw: 928px;
  --maxw-wide: 1024px;
  --gutter: 16px;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--black);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-rubik);
  line-height: normal;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2 {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Página: coluna com gap 24 (auto-layout da Home) */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-height: 100vh;
  min-height: 100dvh;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  padding: 0 var(--gutter);
}

/* ---------- Cabeçalho ---------- */
.header {
  width: 100%;
  background: var(--black);
  padding: 16px 0;
  display: flex;
  justify-content: center;
}

.header__inner {
  flex: 1;
  max-width: var(--maxw-wide);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: block;
  width: 168px;
  height: 48px;
  flex-shrink: 0;
}

.logo img {
  width: 168px;
  height: 48px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.flags {
  display: flex;
  align-items: center;
  gap: 16px;
}

.flag {
  background: none;
  border: 0;
  padding: 0;
  height: 32px;
  display: flex;
  align-items: center;
  border-radius: 4px;
}

.flag img {
  height: 16px;
  width: auto;
  transition: height .15s ease;
}

.flag[aria-pressed="true"] img {
  height: 22px;
}

.flag:focus-visible,
.circle-btn:focus-visible,
.close:focus-visible,
.copy:focus-visible,
.device:focus-visible,
.donate:focus-visible,
.card:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.circle-btn {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 100px;
  border: 3px solid var(--white);
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.circle-btn--static {
  cursor: default;
}

/* ---------- Efeitos de Hover (+2% e Borda Amarela em Redondos) ---------- */
.logo,
.flag,
.circle-btn:not(.circle-btn--static),
.card--able,
.dot,
.donate--pix,
.close,
.copy,
.device,
.btn-send {
  transition: transform .15s ease, border-color .15s ease;
}

.logo:hover,
.flag:hover,
.circle-btn:not(.circle-btn--static):hover:not(:disabled),
.card--able:hover,
.dot:hover,
.donate--pix:hover,
.close:hover,
.copy:hover,
.device:hover,
.btn-send:hover:not(:disabled) {
  transform: scale(1.02);
}

.circle-btn:not(.circle-btn--static):hover:not(:disabled) {
  border-color: var(--yellow);
}

/* ---------- Título ---------- */
.section-title {
  font-family: var(--font-rubik);
  font-weight: 600;
  font-size: 32px;
  color: var(--white);
}

/* ---------- SliderPrincipal (Novidades) ---------- */
.section-novidades,
.slider {
  max-width: var(--maxw-wide);
}

.slider {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slider__viewport {
  position: relative;
  width: 100%;
}

.slider__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  pointer-events: none;
  z-index: 2;
  transition: opacity .25s ease;
}

.slider__fade--left {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, rgba(20, 20, 20, 0) 100%);
}

.slider__fade--right {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, rgba(20, 20, 20, 0) 100%);
}

.slider__fade.is-hidden {
  opacity: 0;
}

.slider__arrow {
  position: absolute;
  top: calc(50% - 16px);
  z-index: 10;
  display: none;
  color: var(--white);
  transition: opacity .2s ease, transform .15s ease, border-color .15s ease;
}

.slider__arrow:disabled {
  opacity: .25;
  cursor: default;
  pointer-events: none;
}

.slider__arrow--prev {
  left: 12px;
}

.slider__arrow--next {
  right: 12px;
}

@media (min-width: 768px) {
  .slider__arrow {
    display: flex;
  }

  .slider__fade {
    width: 64px;
  }
}

.slider__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding: 8px 0;
  margin: -8px 0;
}

.slider__track::-webkit-scrollbar {
  display: none;
}

.slider__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.slider__track.is-dragging * {
  pointer-events: none;
}

.card {
  position: relative;
  flex: 0 0 290px;
  width: 290px;
  height: 516px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
}

.card--able {
  display: flex;
  align-items: flex-end;
  background: var(--black);
  padding: 0;
  text-align: left;
  color: var(--white);
}

.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  pointer-events: none;
}

.card__info {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .7) 60.096%);
}

.card__title {
  font-family: var(--font-jakarta);
  font-weight: 700;
  font-size: 22px;
}

.card__text {
  font-family: var(--font-jakarta);
  font-weight: 400;
  font-size: 16px;
}

.card__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-jakarta);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
}

.card--disable {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(to top, #000 0%, var(--gray-card) 99.186%);
}

.card__soon {
  font-family: var(--font-jakarta);
  font-size: 16px;
  text-align: center;
  color: var(--white);
  opacity: .2;
}

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  height: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #4d4d4d;
}

.dot.is-active {
  background: var(--yellow);
}

/* ---------- Banner amarelo ---------- */
.banner {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.banner--yellow {
  background: linear-gradient(to bottom, #ffd666, #fb0);
  box-shadow: inset 0 -4px 4px rgba(0, 0, 0, .25), inset 0 4px 4px rgba(255, 255, 255, .25);
}

.banner__inner {
  flex: 1;
  min-width: 0;
  max-width: 836px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.banner__text {
  flex: 1 1 300px;
  min-width: 300px;
  max-width: 350px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.txt {
  font-family: var(--font-rubik);
  font-weight: 400;
  font-size: 16px;
  color: var(--black);
  text-align: center;
  width: 100%;
}

.txt--white {
  color: var(--white);
}

.banner__headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.banner__title {
  font-family: var(--font-rubik);
  font-weight: 800;
  font-size: 36px;
  color: var(--black);
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.pill {
  background: var(--black);
  border-radius: 20px;
  padding: 4px 26px;
  width: 260px;
  max-width: 100%;
}

.pill p {
  font-family: var(--font-rubik);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--white);
  text-align: center;
  text-transform: uppercase;
}

.banner__buttons {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-end;
}

.donate {
  flex: 1 1 0;
  min-width: 0;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, .1);
}

.donate__img {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.donate__label {
  width: 100%;
  padding: 8px 16px;
  font-family: var(--font-rubik);
  font-size: 16px;
  color: var(--black);
  text-align: center;
}

.donate--pix {
  background: linear-gradient(to bottom, #fff, #fff2ce);
  cursor: pointer;
}

.donate--pix .donate__img img {
  width: 95px;
  height: 34px;
}

.donate--pix .donate__label {
  background: #ffedbc;
}

.donate--paypal {
  background: linear-gradient(to bottom, #dedede, #bcbcbc);
  opacity: .5;
  cursor: default;
}

.donate--paypal .donate__img img {
  width: 144px;
  height: 96px;
  object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: .2;
}

.donate--paypal .donate__label {
  background: rgba(0, 0, 0, .1);
  opacity: .2;
}

/* ---------- Rodapé ---------- */
.footer {
  width: 100%;
  background: var(--black);
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  flex-grow: 1;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer__year {
  margin-top: -28px;
  font-family: var(--font-rubik);
  font-weight: 700;
  font-size: 12px;
  text-align: center;
}

.socials {
  display: flex;
  gap: 16px;
}

/* ---------- Modais ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .72);
  overflow-y: auto;
}

.modal__card {
  width: 100%;
  max-width: 440px;
  margin: auto;
  background: var(--white);
  color: var(--black);
  border-radius: 16px;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal__card--form {
  gap: 32px;
}

.modal__close-row {
  display: flex;
  justify-content: flex-end;
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal__title {
  font-family: var(--font-rubik);
  font-weight: 700;
  font-size: 22px;
  color: var(--black);
}

.close {
  background: none;
  border: 0;
  padding: 0;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 4px;
}

/* PIX */
.pix__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pix__qr {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 64px 0;
}

.pix__qr img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}

.pix__code {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pix__code .txt {
  width: auto;
  text-align: left;
}

.copy {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-rubik);
  font-weight: 700;
  font-size: 12px;
  color: var(--black);
  white-space: nowrap;
}

/* Dispositivo */
.devices {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.device {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 16px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, .1);
}

.device__img {
  display: flex;
  justify-content: center;
  width: 100%;
}

.device__img img {
  width: 92px;
  height: 142px;
}

.device__label {
  width: 100%;
  padding: 8px 16px;
  font-family: var(--font-rubik);
  font-size: 16px;
  color: var(--black);
  text-align: center;
  background: linear-gradient(to top, #ffbf0c 14.286%, #fed45e);
}

/* Contato */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 56px;
  padding: 16px;
  border: 1px solid var(--gray-input);
  border-radius: 16px;
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}

.input-box--area {
  height: auto;
  min-height: 96px;
  align-items: flex-start;
}

.input-box:focus-within {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px var(--yellow);
}

.input-box.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}

.input-box input,
.input-box textarea {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  font-family: var(--font-rubik);
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  color: var(--black);
}

.input-box textarea {
  resize: none;
  overflow: hidden;
  display: block;
  min-height: 64px;
}

.input-box ::placeholder {
  color: var(--gray-input);
  opacity: 1;
}

.counter {
  font-size: 12px;
  color: var(--gray-input);
  white-space: nowrap;
}

.field__error {
  min-height: 0;
  font-size: 12px;
  color: var(--error);
}

.field__error:empty {
  display: none;
}

.btn-send {
  height: 56px;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(to top, var(--yellow) .893%, var(--yellow-light) 100.89%);
  font-family: var(--font-rubik);
  font-size: 16px;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-send:disabled {
  opacity: .6;
  cursor: progress;
}

.btn-send:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.form__status {
  font-size: 14px;
  text-align: center;
  color: var(--black);
}

.form__status:empty {
  display: none;
}

.form__status.is-error {
  color: var(--error);
}

.form__status.is-ok {
  color: #1a7f37;
}

/* ---------- Telas largas ---------- */
@media (min-width: 640px) {
  .banner {
    padding: 32px;
  }
}

@media (max-width: 380px) {
  .banner__title {
    font-size: 34px;
  }
}