/* Link da bio · Pedro Zavareski */
:root {
  --bg: #050505;
  --green: #00ff67;
  --white: #fff;
  --w60: rgba(255, 255, 255, .6);
  --w70: rgba(255, 255, 255, .7);
  --w20: rgba(255, 255, 255, .2);
  --w10: rgba(255, 255, 255, .1);
  --cond: 'Anton', 'Bebas Neue', 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --sans: 'Inter', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 24px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); color-scheme: dark; }
html.no-scroll, html.no-scroll body { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
p, h1, h2, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* Grain sutil (SVG estático, sem custo de animação) */
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  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");
}

.col { max-width: 480px; margin: 0 auto; }
.noscript { padding: 40px var(--gutter); color: var(--w60); }

/* ---------- Rótulos e divisor ---------- */
.label {
  font: 600 12px/1.2 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--w60);
}
.divider { display: flex; align-items: center; gap: 10px; }
.divider i { width: 8px; height: 8px; background: var(--green); transform: rotate(45deg); flex: none; box-shadow: 0 0 12px rgba(0, 255, 103, .45); }
.divider span { width: 80px; height: 1px; background: var(--w20); }

/* ==========================================================
   Primeira dobra: ocupa exatamente a tela e termina no botão pílula.
   A foto absorve a sobra de altura (flex: 1).
   ========================================================== */
.fold {
  display: flex; flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 300px;
  max-height: 640px;
  overflow: hidden;
  isolation: isolate;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 18%;
  z-index: -2;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,5,5,.35) 0%, rgba(5,5,5,0) 22%, rgba(5,5,5,0) 42%, rgba(5,5,5,.75) 72%, var(--bg) 100%);
}
.hero__text {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 6px;
}
.hero__prefix {
  font: 600 12px/1 var(--sans); letter-spacing: .32em; color: var(--w60);
  margin-bottom: 10px;
}
.hero__name {
  font: 400 clamp(56px, 17vw, 72px)/.9 var(--cond);
  text-transform: uppercase; letter-spacing: .005em;
}
.hero__name span { display: block; }

.fold__body {
  flex: none;
  padding: 18px var(--gutter) 20px;
  display: flex; flex-direction: column; gap: 18px;
}
.positioning { font: 400 15px/1.45 var(--sans); color: var(--w70); margin-top: -6px; max-width: 34ch; }

.ventures .label, .numbers .label { margin-bottom: 8px; }
.ventures__names { font: 300 20px/1.15 var(--sans); letter-spacing: .12em; color: var(--w70); text-transform: uppercase; }
.ventures__names .sep { color: var(--w20); margin: 0 .5em; }
.ventures__desc { font-size: 13px; line-height: 1.45; color: var(--w60); margin-top: 6px; }

.numbers__list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.numbers__list li { border-left: 2px solid var(--green); padding-left: 12px; }
.numbers__list strong { display: block; font: 400 36px/1 var(--cond); letter-spacing: .01em; }
.numbers__list span { display: block; font-size: 12px; line-height: 1.35; color: var(--w60); margin-top: 6px; }

.socials { display: flex; justify-content: center; gap: 12px; }
.socials a, .socials button {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--w20);
  display: grid; place-items: center;
  transition: border-color .2s, background-color .2s;
}
.socials a:active, .socials button:active { background: var(--w10); }
@media (hover: hover) { .socials a:hover, .socials button:hover { border-color: var(--green); } }
.socials svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.socials svg .fill { fill: var(--white); stroke: none; }

.pill {
  height: 56px; border-radius: 999px;
  border: 1px solid var(--w20);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 14px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  transition: border-color .2s, background-color .2s;
}
.pill svg { width: 18px; height: 18px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill:active { background: var(--w10); }
@media (hover: hover) { .pill:hover { border-color: var(--green); } }
@media (prefers-reduced-motion: no-preference) {
  .pill svg { animation: nudge 2.2s var(--ease) infinite; }
  @keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(3px); } }
}

/* Telas baixas (ex.: iPhone SE dentro do Instagram): compacta a dobra */
@media (max-height: 760px) {
  .hero { min-height: 220px; }
  .fold__body { gap: 14px; padding-top: 14px; padding-bottom: 16px; }
  .ventures__names { font-size: 18px; }
  .numbers__list strong { font-size: 32px; }
  .hero__name { font-size: 54px; }
  .positioning { font-size: 14px; }
}

/* ---------- Seções ---------- */
#trabalho { scroll-margin-top: 0; }
.section { padding: 48px var(--gutter) 0; }
.section__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.section__head .divider { margin-bottom: 4px; }
.section__title { font: 300 26px/1.15 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.section__sub { font-size: 14px; color: var(--w60); }

.banners { display: flex; flex-direction: column; gap: 16px; }
.banner {
  display: block; width: 100%;
  aspect-ratio: 1372 / 560;
  /* a arte já vem com borda e cantos próprios (fundo transparente nas pontas) */
  border-radius: 10px; overflow: hidden;
  transform: translateZ(0);
}
.banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  .banner:active img { transform: scale(1.04); transition-duration: .15s; }
  @media (hover: hover) { .banner:hover img { transform: scale(1.03); } }
}
.banner:focus-visible { outline-offset: 2px; }

/* ---------- Rodapé ---------- */
.footer {
  padding: 64px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.footer .divider { margin-bottom: 10px; }
.footer__logo { width: 168px; height: auto; }
.footer__tagline { font: 300 15px/1.4 var(--sans); letter-spacing: .04em; }
.footer__copy { font-size: 12px; color: var(--w60); }

/* ---------- Entrada suave ---------- */
.anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.anim .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================
   Bottom sheet
   ========================================================== */
.sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); opacity: 0; transition: opacity .28s; }
.sheet__panel {
  position: relative; width: 100%; max-width: 480px;
  height: 92vh; height: 92dvh;
  background: #0b0b0b;
  border: 1px solid var(--w10); border-bottom: 0;
  border-radius: 24px 24px 0 0;
  padding: 10px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .32s var(--ease);
}
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .sheet__backdrop, .sheet__panel { transition: none; } }

.sheet__grab { width: 40px; height: 4px; border-radius: 4px; background: var(--w20); margin: 0 auto 8px; }
.sheet__head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 44px; }
.sheet__title { grid-column: 2; text-align: center; font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--w60); }
.sheet__back, .sheet__close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.sheet__back { grid-column: 1; grid-row: 1; }
.sheet__close { grid-column: 3; grid-row: 1; }
.sheet__back[hidden] { display: none; }
.sheet__back svg, .sheet__close svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sheet__banner { display: block; width: 100%; height: auto; aspect-ratio: 1372 / 560; flex: none; margin-top: 6px; border-radius: 10px; }
.sheet__progress { height: 2px; background: var(--w10); border-radius: 2px; overflow: hidden; margin: 16px 0 24px; flex: none; }
.sheet.is-done .sheet__progress { visibility: hidden; }
.sheet__progress span { display: block; height: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); transition: transform .3s var(--ease); }

.sheet__form { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.sheet__step-count { font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.sheet__label { display: block; font: 300 26px/1.2 var(--sans); margin-bottom: 20px; }

.sheet__field input[type=text], .sheet__field input[type=tel], .sheet__field input[type=email], .sheet__field textarea {
  width: 100%; font: 400 18px/1.4 var(--sans); color: var(--white);
  background: transparent; border: 0; border-bottom: 1px solid var(--w20); border-radius: 0;
  padding: 10px 0; outline: none; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.sheet__field textarea { border: 1px solid var(--w20); border-radius: 12px; padding: 12px 14px; resize: none; font-size: 16px; }
.sheet__field input:focus, .sheet__field textarea:focus { border-color: var(--green); }
.sheet__field ::placeholder { color: rgba(255, 255, 255, .3); }

.choices { display: flex; flex-direction: column; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; min-height: 54px; padding: 0 18px;
  border: 1px solid var(--w20); border-radius: 14px; font-size: 16px;
  transition: border-color .15s, background-color .15s;
}
.choice input:checked + span { border-color: var(--green); background: rgba(0, 255, 103, .08); }
.choice input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

.sheet__error { min-height: 22px; margin-top: 10px; font-size: 13px; color: #ff6b6b; }
.sheet__next {
  margin-top: auto; height: 60px; width: 100%; flex: none;
  border-radius: 999px; background: var(--white); color: #050505;
  font: 600 15px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
}
.sheet__next:active { transform: scale(.985); }
.sheet__next[hidden] { display: none; }
.sheet__intro { font-size: 13px; color: var(--w60); text-align: center; margin-top: 14px; }
.sheet__intro[hidden] { display: none; }
.done { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.done__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 255, 103, .1); border: 1px solid rgba(0, 255, 103, .4); margin-bottom: 18px; }
.done__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.done .sheet__label { margin-bottom: 6px; outline: none; }
.done__txt { color: var(--w60); font-size: 16px; line-height: 1.5; margin-bottom: 28px; }
.done .sheet__next { background: var(--green); margin-top: 8px; }
.sheet__next:disabled { opacity: .6; }
.sheet__error a { color: var(--white); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 120;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #111; border: 1px solid var(--w20); border-radius: 999px;
  padding: 12px 20px; font-size: 14px; white-space: nowrap;
  transition: opacity .25s, transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
