/* ==========================================================================
   Juntur — landing de pré-lançamento
   Identidade oficial (mesma paleta do app — nunca inventar cores fora dela)
   ========================================================================== */

:root {
  --mare: #0ab6c4;
  --fundo-mar: #0b4a64;
  --coral: #ff6f59;
  --coral-hover: #f05b44;
  --sol: #ffc145;
  --areia: #fff6ea;
  --concha: #fffdf8;
  --espuma: #d9f2f1;
  --texto-suave: #4e6e7e;
  --grad-mergulho: linear-gradient(160deg, #0fb9c6 0%, #0b4a64 100%);
  --grad-entardecer: linear-gradient(135deg, #ff6f59 0%, #ffc145 100%);
  --shadow-praia: 0 10px 30px rgba(11, 74, 100, 0.1);
  --radius: 18px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Rubik", system-ui, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fundo-mar);
  background: var(--areia);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
}

h1 {
  font-weight: 800;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.015em;
}

h3 {
  font-weight: 700;
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, 1080px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Botões (regra de marca: Coral só em CTA, texto branco semibold) ---- */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.btn-coral {
  background: var(--coral);
  color: #fff;
}

.btn-coral:hover {
  background: var(--coral-hover);
}

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

/* ---- Header fixo: areia translúcida com blur ---- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 20;
  background: rgba(255, 246, 234, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.75rem;
}

.header-logo {
  height: 36px;
  display: block;
}

.header-logo-link {
  display: block;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.header-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--fundo-mar);
}

.header-nav a:hover {
  color: var(--coral-hover);
}

.btn-header {
  padding: 0.6rem 1.35rem;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: var(--grad-mergulho);
  color: var(--concha);
  padding-top: calc(4.5rem + 64px);
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  padding-bottom: 7rem;
}

.hero-sub {
  font-size: 1.125rem;
  margin-inline: auto;
  max-width: 58ch;
  color: var(--espuma);
}

.hero-highlight {
  color: var(--sol);
  font-weight: 700;
  font-size: 1.35rem;
  margin-top: 1.25rem;
}

.hero-selo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--espuma);
}

.selo-symbol {
  height: 28px;
  width: auto;
}

/* Onda divisória (SVG inline, sempre esticada na largura) */
.wave {
  display: block;
  width: 100%;
  height: 72px;
  position: absolute;
  bottom: -1px;
  left: 0;
}

/* ---- Form da lista de espera ---- */
.waitlist-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  max-width: 480px;
  margin: 2rem auto 0;
  text-align: left;
}

.waitlist-form input[type="email"] {
  border: 1px solid var(--espuma);
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font: inherit;
  color: var(--fundo-mar);
  background: var(--concha);
  min-width: 0;
}

.waitlist-form input[type="email"]:focus-visible {
  outline: 3px solid var(--mare);
  outline-offset: 1px;
}

.form-note,
.form-feedback {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.9;
}

.form-feedback {
  font-weight: 600;
  min-height: 1.2em;
}

.form-feedback.is-error {
  color: #ffd9d1;
}

.section .form-feedback.is-error {
  color: #b3261e;
}

/* ---- Seções em areia ---- */
.section {
  padding-block: 4.5rem 3rem;
}

.section h2 {
  text-align: center;
  margin-bottom: 1.75em;
}

.cards {
  display: grid;
  gap: 1.25rem;
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--concha);
  border-radius: var(--radius);
  box-shadow: var(--shadow-praia);
  padding: 1.75rem 1.5rem;
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p {
  margin: 0;
  color: var(--texto-suave);
}

/* ---- Como funciona ---- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: passo;
}

.step {
  background: var(--concha);
  border-radius: var(--radius);
  box-shadow: var(--shadow-praia);
  padding: 1.75rem 1.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--grad-entardecer);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

.step h3 {
  margin-bottom: 0.4em;
}

.step p {
  margin: 0;
  color: var(--texto-suave);
}

/* ---- Faixa de tagline ---- */
.tagline-band {
  background: var(--grad-entardecer);
  padding-block: 3rem;
  text-align: center;
}

.tagline-band p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  letter-spacing: -0.015em;
  color: #fff;
  padding-inline: 1.25rem;
}

/* ---- CTA final ---- */
.cta-final {
  position: relative;
  background: var(--grad-mergulho);
  color: var(--concha);
  text-align: center;
  margin-top: 4rem;
}

.cta-final .wave-top {
  position: absolute;
  top: -1px;
  bottom: auto;
}

.cta-inner {
  padding-block: 7.5rem 4.5rem;
  max-width: 640px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--fundo-mar);
  color: var(--espuma);
  padding-block: 2.5rem;
  text-align: center;
  font-size: 0.95rem;
}

.footer-logo {
  height: 32px;
  margin-bottom: 0.75rem;
}

.footer-selo {
  margin-bottom: 0.35rem;
  opacity: 0.85;
}

.footer-inner p:last-child {
  margin: 0;
}

.site-footer a {
  color: var(--espuma);
}

/* ---- Responsivo ---- */
@media (max-width: 640px) {
  .header-nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
  }

  .waitlist-form .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
