/* ============================================================
   hässy — landing de pré-lançamento
   Paleta e tipografia do Brand Style Guide 2026
   ============================================================ */

:root {
  --night-black: #1A1A1A;
  --forest-green: #2E7D5B;
  --forest-green-dark: #25664a;
  --horizon-blue: #3B82C4;
  --sand: #F2EDE4;
  --stone: #8C8578;
  --warm-gray: #B5AFA5;
  --white: #FFFFFF;

  --radius: 8px;
  --radius-sm: 6px;
  --maxw: 560px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--white);
  background: var(--night-black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Film grain (estética analógica) ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Layout base ---------- */
.page { min-height: 100vh; min-height: 100svh; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
}

/* foto golden-hour de fundo (placeholder em gradiente até subir assets/hero.jpg) */
.hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--night-black);
  background-image:
    radial-gradient(120% 90% at 75% 12%, rgba(214, 138, 74, 0.55) 0%, rgba(214, 138, 74, 0) 55%),
    radial-gradient(120% 80% at 15% 95%, rgba(46, 125, 91, 0.45) 0%, rgba(46, 125, 91, 0) 60%),
    linear-gradient(180deg, #2a2622 0%, #1A1A1A 70%);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

/* Quando você colocar assets/hero.jpg, a foto entra automaticamente aqui por
   cima do gradiente. Se o arquivo não existir, o load falha em silêncio e o
   gradiente golden-hour acima continua como fallback. */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: center 30%;
}

/* escurece a foto pra leitura (contraste médio-alto do branding) */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26,26,26,0.66) 0%, rgba(26,26,26,0.50) 20%, rgba(26,26,26,0.64) 44%, rgba(26,26,26,0.97) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

/* ---------- Brand / logo ---------- */
.brand { display: flex; align-items: center; justify-content: center; }
.brand__logo { height: 44px; width: auto; display: block; }
.brand__fallback {
  display: none;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* ---------- Conteúdo ---------- */
.hero__content {
  margin-top: auto;
  margin-bottom: auto;
  padding: 40px 0;
  animation: rise 0.7s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(242, 237, 228, 0.22);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.headline {
  font-size: clamp(34px, 9vw, 48px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.subhead {
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(242, 237, 228, 0.86);
  margin: 0 0 22px;
  max-width: 42ch;
}
.subhead strong { color: var(--white); font-weight: 600; }

/* ---------- Perks ---------- */
.perks {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--sand);
}
.perk__badge {
  flex: none;
  min-width: 52px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  color: var(--white);
}
.perk__badge--blue { background: var(--horizon-blue); }

/* ---------- Form ---------- */
.signup { display: flex; flex-direction: column; gap: 12px; }

.signup__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--warm-gray);
  letter-spacing: 0.01em;
}

.field input {
  width: 100%;
  min-width: 0;
  font-family: inherit;
  font-size: 16px; /* >=16px evita zoom no iOS */
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(242, 237, 228, 0.18);
  border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.field input::placeholder { color: rgba(181, 175, 165, 0.7); }
.field input:focus {
  outline: none;
  border-color: var(--forest-green);
  background: rgba(255, 255, 255, 0.1);
}
.field input.invalid {
  border-color: #e0654f;
  background: rgba(224, 101, 79, 0.08);
}

.form-error {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: #ff9a85;
}

/* ---------- CTA (Forest Green = cor de ação) ---------- */
.cta {
  position: relative;
  margin-top: 6px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  background: var(--forest-green);
  border: none;
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.18s var(--ease), transform 0.12s var(--ease);
}
.cta:hover { background: var(--forest-green-dark); }
.cta:active { transform: translateY(1px); }
.cta:disabled { cursor: not-allowed; opacity: 0.85; }

.cta__spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.cta.is-loading .cta__label { visibility: hidden; }
.cta.is-loading .cta__spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

.fineprint {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--warm-gray);
  text-align: center;
}

/* ---------- Estado de sucesso ---------- */
.success {
  text-align: center;
  padding: 8px 0;
  animation: rise 0.5s var(--ease) both;
}
.success__check {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  background: var(--forest-green);
  border-radius: 50%;
  animation: pop 0.45s var(--ease) both;
}
@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.success__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.success__text {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(242, 237, 228, 0.88);
  margin: 0 auto 14px;
  max-width: 40ch;
}
.success__text strong { color: var(--white); }
.success__hint {
  font-size: 13px;
  color: var(--warm-gray);
  margin: 0;
}

/* ---------- Footer ---------- */
.footer {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--warm-gray);
  letter-spacing: 0.01em;
}
.footer__handle {
  font-size: 13px;
  font-weight: 600;
  color: var(--sand);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
.footer__handle:hover { color: var(--white); }

/* ---------- Desktop / tablet ---------- */
@media (min-width: 768px) {
  .hero__inner { padding: 36px 32px 28px; }
  .hero__content { padding: 56px 0; }
  .headline { font-size: clamp(46px, 5vw, 60px); }
  .subhead { font-size: 17px; }
  .perks { flex-direction: row; gap: 22px; }
}

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