:root{
  --bg-dark:#191522;
  --fg-dark:#f5f5f5;
  --brand:#83e020;
  --border:#eaeaea;
  --muted:#6b7280;
  --shadow:0 8px 30px rgba(0,0,0,.2);
}

/* iOS não dá zoom em inputs */
html{-webkit-text-size-adjust:100%}

*{box-sizing:border-box;margin:0;padding:0}

body{
  background:var(--bg-dark);
  color:var(--fg-dark);
  font-family:"Inter",system-ui,sans-serif;
  min-height:100vh;
  display:flex; align-items:center; justify-content:center;
  padding:20px;
}

main{
  background:#fff; color:#111;
  width:100%; max-width:860px;
  border-radius:24px; box-shadow:var(--shadow);
  padding:clamp(24px,5vw,48px);
  display:flex; flex-direction:column; gap:18px;
  animation:fadeIn .5s ease-out;
}

@keyframes fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* =============================== */
/* HEADER                          */
/* =============================== */
header{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:20px;
}

/* Header “herói” (desktop/tablet) — use <header class="hero-header"> */
.hero-header{
  background:linear-gradient(135deg,#191522 0%,#22203a 100%);
  color:#f9fafb;
  border-radius:18px;
  padding:clamp(16px,4vw,28px);
  box-shadow:0 8px 24px rgba(0,0,0,.25);
  position:relative; overflow:hidden;
}
.hero-header::after{
  content:""; position:absolute; inset:0;
  background:radial-gradient(circle at 90% 20%,rgba(131,224,32,.15),transparent 60%);
  pointer-events:none;
}
.hero-left{display:flex; align-items:center; gap:16px; flex:1 1 360px;}
.hero-left .logo{height:64px; width:auto; border-radius:10px; box-shadow:0 0 0 10px rgba(131,224,32,.2)}
.hero-text h2{font-size:clamp(20px,3.2vw,26px); font-weight:700; color:var(--brand); margin-bottom:4px}
.hero-text p{color:#e5e7eb; font-size:clamp(14px,2.6vw,15px); line-height:1.4; max-width:340px}
.hero-header .status{color:#fff}

/* Logo padrão (quando a logo está em <div class="logo"><img></div>) */
.logo img{height:clamp(80px,12vw,120px); width:auto; display:block}

/* Chip de status (superfície clara) */
.status{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:600; font-size:14px;
  background:rgba(131,224,32,.10); border:1px solid rgba(131,224,32,.30);
  border-radius:999px; padding:6px 12px; color:var(--bg-dark); white-space:nowrap;
}
.dot{width:8px; height:8px; border-radius:50%; background:var(--brand); box-shadow:0 0 8px var(--brand)}

/* Tablet */
@media (max-width:680px){
  .hero-header{display:flex; flex-direction:column; align-items:flex-start}
  .hero-left{gap:14px}
  .hero-header .status{margin-top:12px}
}

/* =============================== */
/* INTRO / TEXTOS                  */
/* =============================== */
h1{font-size:clamp(28px,5vw,42px); font-weight:800; letter-spacing:-.02em; color:#111}
h1 span{color:var(--brand)}
p.lead{color:var(--muted); line-height:1.5; font-size:clamp(15px,2.5vw,18px)}

.progress{margin:10px 0}
.bar{height:10px; background:#e5e7eb; border-radius:999px; overflow:hidden}
.bar span{display:block; height:100%; background:linear-gradient(90deg,var(--brand),#a8f04b); width:72%}

/* =============================== */
/* GRID / CARDS                    */
/* =============================== */
.grid{display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:20px}
@media (max-width:900px){.grid{grid-template-columns:1fr; gap:16px}}
.card{background:#fafafa; border:1px solid var(--border); border-radius:16px; padding:20px}
.card h2{font-size:18px; margin-bottom:8px}

/* Features */
.list{list-style:none}
.list li{display:flex; gap:8px; align-items:center; color:#374151; margin-bottom:8px}
.check{color:var(--brand); font-weight:700}

/* =============================== */
/* FORM                            */
/* =============================== */
form{display:flex; flex-direction:column; gap:10px; margin-top:12px}

input,button{
  font:inherit; width:100%;
  border-radius:10px; border:1px solid var(--border);
  padding:12px 14px;
}
input::placeholder{color:#9ca3af}

/* inputs 16px evitam zoom no iOS */
input[type="text"], input[type="email"]{font-size:16px; height:48px}

button{
  background:var(--brand); color:var(--bg-dark);
  font-weight:700; border:none; cursor:pointer; transition:all .15s ease;
  min-height:52px; box-shadow:0 6px 16px rgba(131,224,32,.35);
}
button:hover{transform:translateY(-1px); box-shadow:0 3px 10px rgba(131,224,32,.4)}

.consent{display:flex; align-items:flex-start; gap:10px; font-size:13px; color:#6b7280; line-height:1.35}
.consent input{width:20px; height:20px; margin-top:2px; accent-color:var(--brand); flex:0 0 auto}
.consent span{word-break:break-word}
.counter{font-size:13px; color:#6b7280; margin-top:4px}

/* =============================== */
/* ILLUSTRATION                    */
/* =============================== */
.illus{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:12px; padding:12px; border:1px solid rgba(0,0,0,.1); border-radius:16px; background:#f8fafc;
}
.illus-img{width:100%; height:auto; display:block; border-radius:10px; object-fit:cover}
.illus svg{width:min(88%,360px); height:auto; opacity:.9}
img,svg,video{max-width:100%; height:auto; display:block}

/* =============================== */
/* FOOTER                          */
/* =============================== */
footer{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px;
  font-size:12px; color:#6b7280; border-top:1px solid #eee; padding-top:12px; margin-top:20px;
}
footer img{height:18px; width:auto}

/* =============================== */
/* TOAST                           */
/* =============================== */
.toast{
  position:fixed; z-index:2147483647;
  left:50%; top:calc(16px + env(safe-area-inset-top));
  transform:translateX(-50%) translateY(-8px) scale(.98);
  max-width:min(92vw,660px); width:max-content;
  display:flex; align-items:center; gap:12px;
  padding:14px 16px; border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  background:#0b2d12; color:#d1fae5; border:1px solid #14532d;
  opacity:0; transition:opacity .25s ease, transform .25s ease;
}
.toast.show{opacity:1; transform:translateX(-50%) translateY(0) scale(1)}
.toast--error{background:#3b1212; border-color:#7f1d1d; color:#fecaca}
.toast__icon{font-size:18px; line-height:1}
.toast__text{font-weight:600}
.toast__close{
  position:absolute; top:6px; right:6px; width:22px; height:22px; padding:0;
  display:grid; place-items:center; font-size:14px; line-height:1;
  border:0; border-radius:4px; background:transparent; color:inherit; cursor:pointer;
}

/* =============================== */
/* MOBILE TUNING                   */
/* =============================== */
@media (max-width:720px){
  body{
    padding:max(16px, env(safe-area-inset-top))
            clamp(16px,4vw,24px)
            max(24px, env(safe-area-inset-bottom));
  }
  header, footer{padding-inline:0}
  .list li{align-items:flex-start; gap:10px}
  .toast{left:12px; right:12px; top:auto; bottom:max(12px, env(safe-area-inset-bottom)); transform:translateY(8px) scale(.98)}
  .toast.show{transform:translateY(0) scale(1)}
}

/* =============================== */
/* MOBILE ≤480px: header mínimo    */
/* =============================== */
@media (max-width:480px){
  /* qualquer header vira faixa simples (logo | status) */
  header{
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:center;
    column-gap:10px;
    padding:8px 0;
    margin:0;
    background:transparent;
    border-radius:0;
    box-shadow:none;
  }
  header::before, header::after{display:none}

  /* esconde tagline do herói */
  header .hero-text{display:none}

  /* se o header for .hero-header, removemos o visual no mobile */
  .hero-header{background:transparent; box-shadow:none; padding:8px 0; border-radius:0}

  /* logo pequena (cobre <div class="logo"><img> e <img class="logo">) */
  header .logo img, header img.logo{height:32px; width:auto; display:block; border-radius:8px}

  /* status compacto à direita */
  header .status{
    justify-self:end;
    font-size:11px; padding:4px 8px; border-radius:999px;
    background:rgba(131,224,32,.12); border-color:rgba(131,224,32,.26);
    color:#0f172a; white-space:nowrap;
  }
  header .status .dot{width:6px; height:6px; box-shadow:none}

  /* respiro após o topo */
  header + h1{margin-top:12px}

  /* ajustes finos gerais */
  .grid{gap:12px}
  .card{padding:14px}
  .illus{padding:12px}
}

/* ultra-estreito (≤360px) */
@media (max-width:360px){
  header .status{font-size:10.5px; padding:3px 7px}
  header .logo img, header img.logo{height:30px}
}
/* ===== Barra de progresso do lançamento ===== */
.launch-progress{ margin: 14px 0 6px; }
.launch-progress .progress__top{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:6px;
}
.launch-progress .progress__label{
  font-weight:800; color:#111; font-size:14px;
}
.launch-progress .progress__pct{
  font-weight:800; color:var(--brand); font-size:14px;
}

.launch-progress .progress__bar{
  position:relative;
  height:10px; border-radius:999px; overflow:hidden;
  background:#e5e7eb; box-shadow:inset 0 1px 0 rgba(0,0,0,.03);
}
/* fill com etapas: vermelho → laranja → amarelo → lima → verde */
.launch-progress .progress__fill{
  position:absolute; inset:0 auto 0 0;
  height:100%;
  width:0;                               /* será definido inline pelo width:% */
  background:
    linear-gradient(90deg,
      #ef4444 0%,     /* 0%  - 20%   vermelho   */
      #f97316 20%,    /* 20% - 40%   laranja    */
      #facc15 40%,    /* 40% - 60%   amarelo    */
      #a3e635 60%,    /* 60% - 80%   lima       */
      #22c55e 80%,    /* 80% - 100%  verde      */
      #22c55e 100%
    );
  box-shadow: 0 0 0 1px rgba(0,0,0,.04) inset;
  transition: width .6s ease;            /* anima o avanço */
}

@keyframes launch-grow{ from{width:0} to{width:var(--w,100%)} }

.launch-progress .progress__tick{
  position:absolute; top:100%; transform:translate(-50%, 6px);
  font-size:11px; color:#6b7280; white-space:nowrap;
}
.launch-progress .progress__tick::before{
  content:""; position:absolute; top:-8px; left:50%; transform:translateX(-50%);
  width:1px; height:8px; background:#d1d5db; border-radius:1px;
}

.launch-progress .progress__legend{
  margin-top:6px; font-size:12.5px; color:#6b7280;
}

/* Mobile: mantém só “Lançamento” como rótulo para não poluir */
@media (max-width: 480px){
  .launch-progress .progress__tick em{ display:none; }
  .launch-progress .progress__tick:last-of-type em{ display:inline; }
}

/* ===== Barra de progresso do lançamento (3 etapas) ===== */
.launch-progress{ margin: 14px 0 6px; }

.launch-progress .progress__top{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:6px;
}
.launch-progress .progress__label{ font-weight:800; color:#111; font-size:14px; }
.launch-progress .progress__pct{ font-weight:800; color:var(--brand); font-size:14px; }

.launch-progress .progress__bar{
  position:relative;
  height:10px; border-radius:999px; overflow:hidden;
  background:#e5e7eb; box-shadow:inset 0 1px 0 rgba(0,0,0,.03);
}

/* gradiente por etapa: 0–25 vermelho, 25–50 amarelo, 50–100 verde */
.launch-progress .progress__fill{
  position:absolute; inset:0 auto 0 0;
  height:100%; width:0;
  background: linear-gradient(90deg,
    #ef4444 0%,   #ef4444 25%,   /* Análise mercado (25%) */
    #f59e0b 25%,  #f59e0b 50%,   /* MVP (50%) */
    #22c55e 50%,  #22c55e 100%   /* Lançamento oficial (100%) */
  );
  box-shadow: 0 0 0 1px rgba(0,0,0,.04) inset;
  transition: width .6s ease;
}

.launch-progress .progress__tick{
  position:absolute; top:100%; transform:translate(-50%, 6px);
  font-size:11px; color:#6b7280; white-space:nowrap;
}
.launch-progress .progress__tick::before{
  content:""; position:absolute; top:-8px; left:50%; transform:translateX(-50%);
  width:1px; height:8px; background:#d1d5db; border-radius:1px;
}

.launch-progress .progress__legend{
  margin-top:6px; font-size:12.5px; color:#6b7280;
}

/* Mobile: mostra só o rótulo final para não poluir */
@media (max-width: 480px){
  .launch-progress .progress__tick em{ display:none; }
  .launch-progress .progress__tick:last-of-type em{ display:inline; }
}
/* ===== Hero centralizado (desktop/tablet) ===== */
.hero-header{
  justify-content: center;          /* centraliza o conjunto */
  text-align: center;               /* centraliza os textos */
}

.hero-left{
  flex: 0 1 auto;                   /* não estica a coluna */
  justify-content: center;
  gap: 16px;
  margin-inline: auto;              /* garante centralização */
}

.hero-text h2,
.hero-text p{
  text-align: center;               /* textos realmente no centro */
  margin-left: auto;
  margin-right: auto;
  max-width: 560px;                 /* largura confortável de leitura */
}

/* opcional: reduz sombra do logo e deixa ele “respirando” ao lado do título */
.hero-left .logo{ box-shadow: 0 0 0 10px rgba(131,224,32,.18); }

/* ===== Mantém o header minimalista no mobile como já está ===== */
@media (max-width: 480px){
  .hero-header{ justify-content: space-between; text-align: initial; }
  .hero-text{ display: none; }      /* segue sem tagline no mobile */
}
/* ===== Mobile: header com logo maior e centralizada ===== */
@media (max-width: 480px){

  /* centraliza o topo (sobrepõe qualquer grid anterior) */
  header{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 0 !important;   /* um pouco mais de respiro */
    background: transparent !important;
    box-shadow: none !important;
  }

  /* aumenta a logo */
  header .logo img,
  header img.logo{
    height: 80px !important;      /* era ~32px */
    width: auto !important;
    border-radius: 12px !important;
    display: block !important;

    /* aro sutil para dar presença sem pesar */
    box-shadow:
      0 0 0 10px rgba(131,224,32,.18),
      0 8px 18px rgba(0,0,0,.20) !important;
  }

  /* espaço após o topo continua equilibrado */
  header + h1{ margin-top: 14px !important; }
}

/* ultra-estreito (≤360px): pode crescer um tico mais sem quebrar */
@media (max-width: 360px){
  header .logo img,
  header img.logo{
    height: 90px !important;
  }
}
