/* ==========================================================================
   Xande — Link na bio
   Mobile-first. Sem frameworks. Animações só com transform/opacity.
   ========================================================================== */

:root {
  --bg: #080808;
  --surface: #111111;
  --surface-2: #151515;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f5f5f4;
  --muted: #a3a3a3;
  --dim: #767676;
  --green: #d6b26e;
  --green-hover: #f0d9a4;
  --green-ink: #17130a;
  --green-soft: rgba(214, 178, 110, .1);
  --danger: #f87171;

  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html:has(dialog[open]) { overflow: hidden; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 38% at 50% -6%, rgba(214, 178, 110, .15), transparent 70%),
    radial-gradient(45% 30% at 100% 105%, rgba(214, 178, 110, .05), transparent 70%);
}

.page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: calc(36px + env(safe-area-inset-top)) 16px 8px;
}

/* ───────────── Cabeçalho ───────────── */

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

.avatar {
  width: 100px;
  height: 100px;
  flex: none;
  margin-bottom: 20px;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--green), rgba(214, 178, 110, .12) 40%, rgba(214, 178, 110, .12) 60%, var(--green));
  box-shadow: 0 0 0 6px rgba(214, 178, 110, .05), 0 18px 50px -14px rgba(214, 178, 110, .45);
}
.avatar img,
.avatar__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--bg);
  background: #141414;
  object-fit: cover;
}
.avatar picture { display: block; width: 100%; height: 100%; }
.avatar__placeholder { color: var(--green); font-size: 30px; font-weight: 800; letter-spacing: .02em; }

.hero__name {
  margin: 0;
  font-size: clamp(28px, 7.6vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .07em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 7px 14px;
  border: 1px solid rgba(214, 178, 110, .22);
  border-radius: 999px;
  background: var(--green-soft);
  color: #f3e6c6;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.badge__sep { opacity: .4; }

.hero__headline {
  max-width: 22ch;
  margin: 24px 0 0;
  font-size: clamp(22px, 5.8vw, 31px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.hl { color: var(--green); }

.hero__sub { max-width: 34ch; margin: 12px 0 0; color: var(--muted); font-size: 15.5px; }

/* ───────────── Cards ───────────── */

.offers { display: grid; gap: 16px; margin-top: 28px; }

.card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card:active { transform: scale(.99); }

.card--featured {
  border-color: transparent;
  background:
    linear-gradient(180deg, #15120c 0%, #0d0c0a 60%) padding-box,
    linear-gradient(160deg, rgba(214, 178, 110, .8), rgba(214, 178, 110, .08) 45%, rgba(214, 178, 110, .4)) border-box;
  box-shadow: 0 30px 80px -34px rgba(214, 178, 110, .4);
}
.card--premium { background: linear-gradient(180deg, #161616, #0f0f0f); }

.card__media {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0c0c0c;
}
.card--featured .card__media { aspect-ratio: 50 / 21; } /* mesma proporção do banner (1200×504) */
.card--premium .card__media { aspect-ratio: 16 / 7; }
.card__media picture { display: block; width: 100%; height: 100%; }
.card__media img,
.ph {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

/* Placeholders das imagens (substitua por <picture>, veja comentários no HTML) */
.ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 95% at 50% 125%, rgba(214, 178, 110, .3), transparent 62%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 28px 28px,
    #0d0c0a;
}
.ph__mark {
  font-size: clamp(46px, 16vw, 72px);
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1;
  background: linear-gradient(180deg, #f0d9a4, var(--green) 55%, rgba(214, 178, 110, .25));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ph__label {
  position: absolute;
  left: 16px;
  bottom: 12px;
  color: rgba(255, 255, 255, .5);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ph--premium {
  background:
    radial-gradient(60% 120% at 85% 0%, rgba(255, 255, 255, .08), transparent 60%),
    radial-gradient(50% 90% at 0% 100%, rgba(214, 178, 110, .1), transparent 60%),
    #111;
}
.ph--premium .ph__mark {
  font-size: clamp(28px, 9vw, 42px);
  letter-spacing: .32em;
  padding-left: .32em;
  background: linear-gradient(180deg, #fafafa, #8a8a8a);
  -webkit-background-clip: text;
  background-clip: text;
}

.card__body { display: flex; flex: 1; flex-direction: column; padding: 22px 20px 20px; }
.card__eyebrow { color: var(--green); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.card--premium .card__eyebrow { color: #cfcfcf; }
.card__title { margin: 8px 0 0; font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.card--featured .card__title { font-size: 25px; }
.card__desc { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.card__cta { margin-top: auto; padding-top: 22px; }

/* ───────────── Botões ───────────── */

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-size: clamp(13px, 3.6vw, 14.5px);
  font-weight: 800;
  letter-spacing: .045em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn__arrow {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s var(--ease);
}

.btn--primary { background: var(--green); color: var(--green-ink); box-shadow: 0 12px 30px -12px rgba(214, 178, 110, .75); }

/* Pulsação do CTA principal: anel em pseudo-elemento (só transform/opacity) */
.card--featured .btn--primary::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  border: 2px solid var(--green);
  opacity: 0;
  animation: pulse 2.6s var(--ease) 1.2s infinite;
}
.card--featured .btn__arrow { animation: nudge 1.8s var(--ease) infinite; }

.btn--ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .035); color: var(--text); }
.btn--ghost .btn__arrow { color: var(--green); }

.btn--sm { width: auto; min-height: 42px; padding: 10px 16px; border-radius: 10px; font-size: 13px; letter-spacing: .02em; }

@media (hover: hover) {
  .card:hover { transform: translateY(-4px); }
  .card--featured:hover { box-shadow: 0 40px 90px -30px rgba(214, 178, 110, .55); }
  .card--premium:hover { border-color: rgba(255, 255, 255, .16); }
  .card:hover .card__media img,
  .card:hover .ph { transform: scale(1.035); }
  .btn--primary:hover { background: var(--green-hover); }
  .btn--ghost:hover,
  .card--premium:hover .btn--ghost { border-color: rgba(214, 178, 110, .5); background: rgba(214, 178, 110, .07); }
  .btn:hover .btn__arrow,
  .card:hover .btn__arrow { animation: none; transform: translateX(4px); }
}

/* ───────────── Rodapé ───────────── */

.footer {
  position: relative;
  z-index: 1;
  padding: 44px 16px calc(28px + env(safe-area-inset-bottom));
  color: var(--dim);
  font-size: 12.5px;
  text-align: center;
}
.footer p { margin: 0; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 12px; }
.footer__nav a,
.footer__btn {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s;
}
.footer__nav a:hover,
.footer__btn:hover { color: var(--text); }

/* ───────────── Modal / formulário ───────────── */

.sheet {
  width: 100%;
  max-width: 560px;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
.sheet::backdrop { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet[open] .sheet__panel { animation: sheet-in .38s var(--ease); }
.sheet[open]::backdrop { animation: fade-in .3s ease; }

.sheet__panel {
  position: relative;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 22px 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: #0e0e0e;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .85);
}
.sheet__grip { display: none; }
.sheet__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.sheet__close:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.sheet__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.sheet__eyebrow { margin: 0; padding-right: 48px; color: var(--green); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sheet__title { margin: 8px 0 0; padding-right: 40px; font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.sheet__intro { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }

@media (max-width: 599px) {
  .sheet { max-width: 100%; margin: auto 0 0; }
  .sheet__panel {
    max-height: 94vh;
    max-height: 94dvh;
    padding: 34px 18px calc(24px + env(safe-area-inset-bottom));
    border-bottom: 0;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .sheet__grip { position: absolute; top: 10px; left: 50%; display: block; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(255, 255, 255, .15); }
  .sheet[open] .sheet__panel { animation-name: sheet-up; }
}

.form { display: grid; gap: 18px; margin-top: 24px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label { padding: 0; font-size: 14px; font-weight: 700; line-height: 1.35; }
.field__hint { color: var(--dim); font-weight: 500; }
.field__error { margin: 0; color: #fca5a5; font-size: 13px; }
.field__error:empty { display: none; }

.input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* evita zoom automático no iOS */
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder { color: #5e5e5e; }
.input:focus { outline: none; border-color: rgba(214, 178, 110, .7); background: #171717; box-shadow: 0 0 0 4px rgba(214, 178, 110, .12); }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { min-height: 120px; resize: vertical; }
select.input {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d6b26e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  cursor: pointer;
}
select.input:invalid { color: #6b6b6b; }
select.input option { background: #151515; color: var(--text); }

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip { position: relative; }
.chip--wide { grid-column: 1 / -1; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  height: 100%;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s, transform .15s;
}
.chip span:active { transform: scale(.97); }
.chip input:checked + span { border-color: var(--green); background: var(--green-soft); color: #f3e6c6; }
.chip input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.chips[aria-invalid="true"] .chip span { border-color: rgba(248, 113, 113, .6); }

.consent { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.consent a { color: var(--text); text-underline-offset: 2px; }
.consent input {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--surface-2);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.consent input::after {
  content: "";
  width: 6px;
  height: 11px;
  margin-top: -2px;
  border: solid var(--green-ink);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .15s var(--ease);
}
.consent input:checked { border-color: var(--green); background: var(--green); }
.consent input:checked::after { transform: rotate(45deg) scale(1); }
.consent input[aria-invalid="true"] { border-color: var(--danger); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; }
.form__status.is-error { border: 1px solid rgba(248, 113, 113, .3); background: rgba(248, 113, 113, .08); color: #fecaca; }

.btn--submit { margin-top: 4px; }
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(23, 19, 10, .25);
  border-top-color: var(--green-ink);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn--submit.is-loading { pointer-events: none; opacity: .85; }
.btn--submit.is-loading .spinner { display: block; }
.btn--submit.is-loading .btn__arrow { display: none; }

.form__privacy { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--dim); font-size: 12.5px; }
.form__privacy svg { width: 15px; height: 15px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; }

.success { padding: 20px 0 4px; text-align: center; }
.success:focus { outline: none; }
.success .sheet__title { padding: 0; }
.success .sheet__intro { max-width: 40ch; margin: 10px auto 26px; }
.success__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px rgba(214, 178, 110, .35);
  animation: pop .45s var(--ease);
}
.success__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ───────────── Cookies e toast ───────────── */

.cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(18, 18, 18, .96);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .8);
  animation: rise .4s var(--ease);
}
.cookie p { flex: 1 1 260px; margin: 0; color: var(--muted); font-size: 13px; }
.cookie p a { color: var(--text); }
.cookie__actions { display: flex; gap: 8px; margin-left: auto; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #161616;
  color: var(--text);
  font-size: 14px;
  transform: translateX(-50%);
  animation: rise .3s var(--ease);
}

/* ───────────── Desktop ───────────── */

@media (min-width: 900px) {
  .page { max-width: 1000px; padding-top: 80px; }
  .hero__headline { max-width: 26ch; }
  .offers { grid-template-columns: 1.2fr 1fr; align-items: stretch; gap: 20px; margin-top: 56px; }
  .card__body { padding: 26px 26px 24px; }
  .card--featured .card__title { font-size: 28px; }
}

/* ───────────── Animações ───────────── */

/* "backwards" (e não "both") para não travar o transform do hover depois da entrada */
.reveal { animation: rise .6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0% { opacity: .55; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.05, 1.35); }
}
@keyframes nudge {
  0%, 60%, 100% { transform: translateX(0); }
  30% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .card--featured .btn--primary::before { display: none; }
}

/* ───────────── Páginas legais ───────────── */

.legal { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: calc(40px + env(safe-area-inset-top)) 20px 24px; }
.legal__back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; text-decoration: none; }
.legal__back:hover { color: var(--text); }
.legal h1 { margin: 28px 0 6px; font-size: clamp(26px, 6vw, 34px); font-weight: 800; letter-spacing: -.01em; }
.legal h2 { margin: 32px 0 8px; font-size: 18px; font-weight: 700; }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--green); }
.legal__date { color: var(--dim); font-size: 13px; }
.legal__note { margin-top: 24px; padding: 12px 14px; border: 1px dashed rgba(214, 178, 110, .35); border-radius: var(--r-sm); background: var(--green-soft); color: #f3e6c6 !important; font-size: 13px !important; }

/* ───────────── Xande: títulos e texto sobre as fotos dos cards ───────────── */

.hero__name, .card__title, .sheet__title, .hero__headline, .legal h1 { font-family: "Inter Tight", var(--font); }
.hero__headline { letter-spacing: -.03em; }
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(8, 8, 8, .85) 0%, rgba(8, 8, 8, .15) 55%, transparent 100%);
}
.media__tag {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.media__tag b {
  font-family: "Inter Tight", var(--font);
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.media__tag span {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--green);
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 800;
}
.card--premium .media__tag span { border: 1px solid var(--line-2); background: rgba(0, 0, 0, .5); color: var(--text); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
