/* ===== Hitt · lista de espera ===== */

:root {
  /* Base */
  --ink: #09080C;        /* fundo */
  --panel: #131118;      /* painéis */
  --raised: #221F2B;     /* campos e quadrados desligados */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #F6F3FA;
  --muted: #9D96AA;

  /* Marca */
  --pink: #FF3E9D;       /* cor do Hitt */
  --pink-deep: #D81B78;  /* fundo dos botões (contraste com texto branco) */
  --violet: #A477FF;

  /* Um canal = uma cor, como numa DAW */
  --kick: var(--pink);
  --snare: var(--violet);
  --hat: #4FD8EB;
  --bass: #C4F23A;

  --error: #FF7A8A;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: 20px;
  --nav-h: 64px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 16px); /* o menu fixo não cobre o campo focado */
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 30;
  padding: 10px 16px;
  background: var(--pink-deep);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
}
.skip:focus { top: 12px; }

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--pink-deep);
  color: #fff;
  font: 600 15px/1 var(--font);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 24px -10px rgba(255, 62, 157, 0.6);
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-big { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #EA2689; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 30px -10px rgba(255, 62, 157, 0.8); }
}

/* ===== Menu fixo ===== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  /* alinha com o conteúdo (máx. 1180px) e respeita o notch */
  --edge: max(var(--gutter), calc((100% - 1180px) / 2 + var(--gutter)));
  padding: env(safe-area-inset-top, 0px) max(var(--edge), env(safe-area-inset-right, 0px)) 0 max(var(--edge), env(safe-area-inset-left, 0px));
  background: rgba(9, 8, 12, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--pink);
}

.nav-back {
  padding: 8px 4px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .nav-back:hover { color: var(--text); }
}

/* ===== Topo ===== */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 32px) var(--gutter) 56px;
  display: grid;
  gap: 28px;
  align-content: center;
  max-width: 1180px;
  margin: 0 auto;
}
/* brilho rosa atrás do topo, como luz de palco */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -10%;
  left: 50%;
  width: min(900px, 140vw);
  aspect-ratio: 1;
  transform: translateX(-60%);
  background: radial-gradient(closest-side, rgba(255, 62, 157, 0.22), rgba(164, 119, 255, 0.08) 55%, transparent 75%);
  pointer-events: none;
}
.hero-mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(96px, 30vw, 240px);
  line-height: 0.8;
  letter-spacing: -0.035em;
  margin-left: -0.05em;
  color: var(--pink);
  text-shadow: 0 0 60px rgba(255, 62, 157, 0.35);
}
.hero h1 {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 8.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero-lead {
  margin-top: 16px;
  max-width: 36ch;
  color: var(--muted);
  font-size: 18px;
}
.hero h1, .feature h2, .signup h2 { text-wrap: balance; }
.hero-cta { margin-top: 4px; }
.hero-note { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* ===== Sequenciador ===== */
.seq {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)) , var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 30px 80px -40px rgba(255, 62, 157, 0.45);
}
.seq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.seq-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink);
  font: 600 15px/1 var(--font);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out);
}
.seq-play:active { transform: scale(0.97); }
.seq-play svg { width: 14px; height: 14px; fill: currentColor; }
.seq-play .icon-stop { display: none; }
.seq-play[aria-pressed="true"] { background: var(--pink); color: #fff; }
.seq-play[aria-pressed="true"] .icon-play { display: none; }
.seq-play[aria-pressed="true"] .icon-stop { display: block; }
.seq-bpm {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.seq-bpm strong { color: var(--text); font-weight: 600; }

.seq-grid { display: grid; gap: 6px; }
.seq-row {
  display: grid;
  grid-template-columns: 44px repeat(8, 1fr);
  gap: 5px;
  align-items: center;
}
.seq-row:nth-child(1) { --c: var(--kick); }
.seq-row:nth-child(2) { --c: var(--snare); }
.seq-row:nth-child(3) { --c: var(--hat); }
.seq-row:nth-child(4) { --c: var(--bass); }
.seq-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--c);
}
.pad {
  height: 44px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--raised);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 120ms var(--ease-out), transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
}
/* marca o começo de cada tempo, como na régua de uma DAW */
.pad:nth-child(4n + 2) { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.pad[aria-pressed="true"] {
  background: var(--c);
  box-shadow: 0 0 18px -4px var(--c), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.pad:active { transform: scale(0.92); }
.pad.is-now { transform: scale(1.06); filter: brightness(1.25); }
.pad.is-now[aria-pressed="false"] { background: #34303F; }

@media (hover: hover) and (pointer: fine) {
  .pad[aria-pressed="false"]:hover { background: #2C2837; }
  .seq-play:hover { background: #FFFFFF; }
  .seq-play[aria-pressed="true"]:hover { background: #FF5AAC; }
}

.seq-hint { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* Único momento de entrada: os quadrados acendem em sequência, como uma MPC ligando */
@media (prefers-reduced-motion: no-preference) {
  .seq-grid.is-booting .pad[aria-pressed="true"] {
    animation: boot 420ms var(--ease-out) both;
    animation-delay: calc(var(--step) * 55ms + 250ms);
  }
  @keyframes boot {
    from { background: var(--raised); box-shadow: none; transform: scale(0.9); }
  }
}

/* ===== Seções de produtor e artista ===== */
.feature {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px var(--gutter);
  display: grid;
  gap: 40px;
  scroll-margin-top: var(--nav-h);
}
.feature h2,
.signup h2,
.success h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 9.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.feature-lead {
  margin-top: 14px;
  max-width: 38ch;
  color: var(--muted);
  font-size: 18px;
}
.points { margin-top: 32px; display: grid; gap: 10px; }
.points li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}
.points h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.points h3::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--pink));
  box-shadow: 0 0 10px var(--dot, var(--pink));
}
#mcs .points { --dot: var(--violet); }
.points p { margin-top: 4px; padding-left: 18px; color: var(--muted); font-size: 16px; max-width: 48ch; }

/* ===== Telas de exemplo ===== */
.mock {
  align-self: start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)), var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 18px;
}
.mock-title { font-weight: 600; font-size: 16px; }
.mock-sub { color: var(--muted); font-size: 14px; }

.mock-file { display: flex; gap: 14px; align-items: center; }
.mock-wave {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background:
    linear-gradient(var(--pink), var(--pink)) 9px 50% / 3px 40% no-repeat,
    linear-gradient(var(--pink), var(--pink)) 17px 50% / 3px 70% no-repeat,
    linear-gradient(var(--pink), var(--pink)) 25px 50% / 3px 50% no-repeat,
    linear-gradient(var(--pink), var(--pink)) 33px 50% / 3px 85% no-repeat,
    linear-gradient(var(--pink), var(--pink)) 41px 50% / 3px 35% no-repeat,
    rgba(255, 62, 157, 0.12);
}

.readout { margin-top: 18px; display: grid; gap: 6px; }
.readout-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--raised);
  font-size: 15px;
}
.readout-row dt { color: var(--muted); }
.readout-row dd { display: grid; gap: 8px; }
.readout-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.meter {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--bass) var(--v), rgba(255, 255, 255, 0.08) var(--v));
}
.readout-row.is-warn { box-shadow: inset 0 0 0 1px rgba(255, 62, 157, 0.5); }
.readout-row.is-warn .meter { background: linear-gradient(to right, var(--pink) var(--v), rgba(255, 255, 255, 0.08) var(--v)); }

.post-head { display: flex; gap: 12px; align-items: center; }
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.post-body { margin-top: 14px; font-size: 18px; line-height: 1.45; }
.post-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.post-tags li {
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 500;
}
.post-replies {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.stack { display: flex; }
.stack i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--panel);
  margin-left: -8px;
  background: var(--pink);
}
.stack i:first-child { margin-left: 0; }
.stack i:nth-child(2) { background: var(--hat); }
.stack i:nth-child(3) { background: var(--bass); }

/* ===== Formulário ===== */
.signup {
  padding: 80px var(--gutter) 96px;
  scroll-margin-top: var(--nav-h);
}
.signup-box {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 62, 157, 0.07), rgba(255, 62, 157, 0) 40%), var(--panel);
}
#waitlist { margin-top: 28px; display: grid; gap: 20px; }

.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label,
.field > legend { font-weight: 500; font-size: 15px; padding: 0; }
.field > legend { margin-bottom: 8px; }
.optional { color: var(--muted); font-weight: 400; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--ink);
  color: var(--text);
  font: 400 16px var(--font); /* 16px: o iPhone não dá zoom no campo */
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: #5F596B; }
.field input:focus-visible {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 62, 157, 0.18);
}
.field input[aria-invalid="true"] { border-color: var(--error); }

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--ink);
}
.choice { position: relative; }
.choice input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice span {
  display: grid;
  place-items: center;
  height: 44px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.choice input:checked + span { background: var(--pink-deep); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 2px; }
.choices[aria-invalid="true"] { border-color: var(--error); }

@media (hover: hover) and (pointer: fine) {
  .choice input:not(:checked):hover + span { color: var(--text); }
}

.field > .consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}
.consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--pink-deep);
  cursor: pointer;
}

.error { color: var(--error); font-size: 14px; }
.email-fix { color: var(--muted); font-size: 14px; }
.email-fix button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--pink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  touch-action: manipulation;
}
.error:empty { display: none; }
.form-error { color: var(--error); font-size: 15px; }
.form-error:empty { display: none; }

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

/* ===== Confirmação ===== */
.success { outline: none; }
.success-pos { margin-top: 20px; color: var(--muted); font-size: 16px; }
.success-pos:empty { display: none; }
.success-pos strong {
  display: block;
  color: var(--pink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 88px;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.success .btn { margin-top: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .success:not([hidden]) { animation: enter 360ms var(--ease-out); }
  @keyframes enter {
    from { opacity: 0; transform: translateY(8px); }
  }
}

/* ===== Página de obrigado ===== */
.thanks {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 24px) var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}
.thanks::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -20%;
  left: 50%;
  width: min(800px, 140vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 62, 157, 0.2), rgba(164, 119, 255, 0.07) 55%, transparent 75%);
  pointer-events: none;
}
.thanks-box { width: 100%; max-width: 520px; }
.thanks-check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pink-deep);
  box-shadow: 0 10px 40px -8px rgba(255, 62, 157, 0.7);
}
.thanks-check svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.thanks h1 {
  margin-top: 24px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 10vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.thanks-lead { margin-top: 14px; color: var(--muted); font-size: 18px; }
.thanks-pos {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 62, 157, 0.08), rgba(255, 62, 157, 0) 70%), var(--panel);
}
.thanks-pos p { color: var(--muted); font-size: 14px; }
.thanks-pos strong {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--pink);
}
.thanks-steps { margin: 28px 0; display: grid; gap: 10px; }
.thanks-steps li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}
.thanks-steps h2 { font-size: 17px; font-weight: 600; }
.thanks-steps p { margin-top: 2px; color: var(--muted); font-size: 15px; }
.thanks-back {
  display: block;
  margin-top: 16px;
  padding: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  text-underline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .thanks-back:hover { color: var(--text); }
}
@media (prefers-reduced-motion: no-preference) {
  .thanks-box > * { animation: enter 420ms var(--ease-out) both; }
  .thanks-box > :nth-child(2) { animation-delay: 60ms; }
  .thanks-box > :nth-child(3) { animation-delay: 120ms; }
  .thanks-box > :nth-child(n + 4) { animation-delay: 180ms; }
}

/* ===== Rodapé ===== */
.footer {
  padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  max-width: 1180px;
  margin: 0 auto;
}
.footer p { margin-top: 6px; }
.footer-small { font-size: 13px; }

/* ===== Telas maiores ===== */
@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .seq { padding: 24px; }
  .pad { height: 52px; border-radius: 12px; }
  .seq-row { grid-template-columns: 56px repeat(8, 1fr); gap: 8px; }
  .seq-grid { gap: 8px; }
  .feature { padding: 120px var(--gutter); }
  .signup { padding: 120px var(--gutter) 140px; }
  .signup-box { padding: 44px 40px; }
  .mock { padding: 24px; }
}

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
    grid-template-areas: "copy seq" "cta seq";
    align-content: center;
    column-gap: 64px;
    row-gap: 32px;
  }
  .hero-copy { grid-area: copy; align-self: end; }
  .seq { grid-area: seq; align-self: center; }
  .hero-cta { grid-area: cta; align-self: start; margin-top: 0; }
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
  .feature-flip .mock { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
