/* ============================================
   ESTILOS — FollowUp AI Launch Page
   ============================================ */

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-corpo);
  font-size: var(--fs-corpo);
  font-weight: var(--peso-normal);
  line-height: var(--lh-normal);
  color: var(--cor-texto);
  background: var(--cor-fundo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }
code { font-family: var(--font-mono); }

/* ── Accessibility ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--cor-accent);
  outline-offset: 3px;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--bp-lg);
  margin: 0 auto;
  padding: 0 var(--esp-6);
}

@media (min-width: 48rem) {
  .container { padding: 0 var(--esp-8); }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--esp-2);
  padding: var(--esp-3) var(--esp-6);
  border-radius: var(--raio-md);
  font-weight: var(--peso-semi);
  font-size: var(--fs-corpo);
  transition: all var(--dur-normal) var(--ease-out);
  white-space: nowrap;
}

.btn--lg {
  padding: var(--esp-4) var(--esp-8);
  font-size: 1.05rem;
}

.btn--full { width: 100%; }

.btn--primary {
  background: var(--cor-accent);
  color: hsl(0 0% 100%);
  box-shadow: 0 2px 12px hsl(14 90% 58% / 0.3);
}
.btn--primary:hover {
  background: var(--cor-accent-glow);
  box-shadow: 0 4px 20px hsl(14 90% 58% / 0.45);
  transform: translateY(-1px);
}
.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--cor-texto-suave);
  border: 1px solid var(--cor-borda);
}
.btn--ghost:hover {
  color: var(--cor-texto);
  border-color: var(--cor-texto-suave);
  background: hsl(0 0% 100% / 0.04);
}

.btn--outline {
  background: transparent;
  color: var(--cor-texto);
  border: 1px solid var(--cor-borda);
}
.btn--outline:hover {
  border-color: var(--cor-accent);
  color: var(--cor-accent);
  background: hsl(14 90% 58% / 0.06);
}

/* ═══════════════════ NAV ═══════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: hsl(230 30% 7% / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cor-borda);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--esp-2);
  font-weight: var(--peso-bold);
  font-size: 1.1rem;
  color: var(--cor-texto);
}

.nav__logo-icon { flex-shrink: 0; }

.nav__links {
  display: none;
  align-items: center;
  gap: var(--esp-8);
}

@media (min-width: 48rem) {
  .nav__links { display: flex; }
}

.nav__link {
  font-size: var(--fs-pequeno);
  font-weight: var(--peso-medio);
  color: var(--cor-texto-suave);
  transition: color var(--dur-fast);
}
.nav__link:hover { color: var(--cor-texto); }

.nav__cta-btn {
  display: none;
  padding: var(--esp-2) var(--esp-5);
  background: var(--cor-accent);
  color: #fff;
  border-radius: var(--raio-md);
  font-size: var(--fs-pequeno);
  font-weight: var(--peso-semi);
  transition: all var(--dur-normal) var(--ease-out);
}
.nav__cta-btn:hover {
  background: var(--cor-accent-glow);
  transform: translateY(-1px);
}
@media (min-width: 48rem) {
  .nav__cta-btn { display: inline-flex; }
}

/* Mobile toggle */
.nav__mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--esp-2);
}
.nav__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cor-texto);
  border-radius: 2px;
  transition: all var(--dur-normal) var(--ease-out);
}
@media (min-width: 48rem) {
  .nav__mobile-toggle { display: none; }
}

/* ═══════════════════ HERO ═══════════════════ */
.hero {
  position: relative;
  padding: calc(64px + var(--esp-16)) 0 var(--esp-16);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

@media (min-width: 48rem) {
  .hero { padding: calc(64px + var(--esp-20)) 0 var(--esp-20); }
}

.hero__gradient {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, hsl(14 90% 58% / 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  gap: var(--esp-12);
  align-items: center;
}

@media (min-width: 48rem) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--esp-12);
  }
}

.hero__badge {
  display: inline-block;
  padding: var(--esp-1) var(--esp-4);
  background: hsl(14 90% 58% / 0.12);
  color: var(--cor-accent);
  border: 1px solid hsl(14 90% 58% / 0.25);
  border-radius: var(--raio-pill);
  font-size: var(--fs-mini);
  font-weight: var(--peso-semi);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--esp-6);
}

.hero__title {
  font-family: var(--font-titulo);
  font-size: var(--fs-display);
  font-weight: var(--peso-bold);
  line-height: var(--lh-tight);
  color: var(--cor-texto);
  margin-bottom: var(--esp-6);
}
.hero__title em {
  font-style: normal;
  color: var(--cor-accent);
}

.hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--cor-texto-suave);
  line-height: var(--lh-loose);
  max-width: 520px;
  margin-bottom: var(--esp-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-4);
  margin-bottom: var(--esp-10);
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: var(--esp-4);
}

.hero__avatars {
  display: flex;
}
.hero__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-mini);
  font-weight: var(--peso-bold);
  color: #fff;
  border: 2px solid var(--cor-fundo);
  margin-left: -8px;
}
.hero__avatar:first-child { margin-left: 0; }

.hero__proof-text {
  font-size: var(--fs-pequeno);
  color: var(--cor-texto-suave);
}
.hero__proof-text strong { color: var(--cor-texto); }

/* ── Hero Visual / Waveform ── */
.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--esp-8);
}

.hero__waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 80px;
  padding: var(--esp-4) var(--esp-6);
  background: var(--cor-superficie);
  border-radius: var(--raio-lg);
  border: 1px solid var(--cor-borda);
  width: 100%;
  max-width: 400px;
}

.wf-bar {
  width: 6px;
  border-radius: 3px;
  background: var(--cor-accent);
  height: var(--h);
  animation: wf-pulse var(--d) ease-in-out infinite alternate;
  opacity: 0.7;
}

@keyframes wf-pulse {
  0% { height: calc(var(--h) * 0.4); opacity: 0.4; }
  100% { height: var(--h); opacity: 0.85; }
}

/* ── Terminal Card ── */
.hero__card {
  width: 100%;
  max-width: 420px;
  background: var(--cor-superficie);
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-lg);
  overflow: hidden;
  box-shadow: var(--sombra-lg);
}

.hero__card-header {
  display: flex;
  align-items: center;
  gap: var(--esp-2);
  padding: var(--esp-3) var(--esp-4);
  background: var(--cor-superficie-2);
  border-bottom: 1px solid var(--cor-borda);
}

.hero__card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.hero__card-dot--red { background: hsl(0 72% 55%); }
.hero__card-dot--yellow { background: hsl(40 80% 50%); }
.hero__card-dot--green { background: hsl(142 60% 48%); }

.hero__card-title {
  margin-left: var(--esp-3);
  font-size: var(--fs-mini);
  font-family: var(--font-mono);
  color: var(--cor-texto-suave);
}

.hero__card-body {
  padding: var(--esp-4);
  display: flex;
  flex-direction: column;
  gap: var(--esp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-mini);
  line-height: 1.7;
}

.hero__card-line {
  color: var(--cor-texto);
}
.hero__card-line--dim { color: var(--cor-texto-suave); opacity: 0.7; }
.hero__card-line--accent { color: var(--cor-accent); font-weight: var(--peso-semi); }

.hero__card-tag {
  display: inline-block;
  padding: 1px 6px;
  background: hsl(14 90% 58% / 0.15);
  color: var(--cor-accent);
  border-radius: var(--raio-sm);
  font-size: 0.7rem;
}
.hero__card-tag--date {
  background: hsl(200 60% 50% / 0.15);
  color: hsl(200 70% 65%);
}

/* ═══════════════════ LOGOS ═══════════════════ */
.logos {
  padding: var(--esp-12) 0;
  border-top: 1px solid var(--cor-borda);
  border-bottom: 1px solid var(--cor-borda);
}

.logos__label {
  text-align: center;
  font-size: var(--fs-mini);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cor-texto-suave);
  margin-bottom: var(--esp-6);
}

.logos__row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--esp-10);
}

.logos__item {
  font-size: 1.2rem;
  font-weight: var(--peso-bold);
  color: var(--cor-texto-suave);
  opacity: 0.4;
  transition: opacity var(--dur-normal);
  letter-spacing: -0.01em;
}
.logos__item:hover { opacity: 0.7; }

/* ═══════════════════ SECTION HEADER ═══════════════════ */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--esp-12);
}

.section-header__title {
  font-family: var(--font-titulo);
  font-size: var(--fs-h1);
  font-weight: var(--peso-bold);
  line-height: var(--lh-tight);
  margin-bottom: var(--esp-4);
}

.section-header__sub {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--cor-texto-suave);
}

/* ═══════════════════ STEPS ═══════════════════ */
.steps {
  padding: var(--esp-20) 0;
}

.steps__grid {
  display: grid;
  gap: var(--esp-8);
}

@media (min-width: 48rem) {
  .steps__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  position: relative;
  padding: var(--esp-8);
  background: var(--cor-superficie);
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-lg);
  transition: border-color var(--dur-normal), box-shadow var(--dur-normal);
}
.step-card:hover {
  border-color: hsl(14 90% 58% / 0.3);
  box-shadow: var(--sombra-glow);
}

.step-card__number {
  position: absolute;
  top: var(--esp-4);
  right: var(--esp-5);
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: var(--peso-bold);
  color: hsl(0 0% 100% / 0.04);
  line-height: 1;
}

.step-card__icon {
  margin-bottom: var(--esp-5);
}

.step-card__title {
  font-family: var(--font-titulo);
  font-size: var(--fs-h3);
  font-weight: var(--peso-semi);
  margin-bottom: var(--esp-3);
}

.step-card__desc {
  font-size: var(--fs-pequeno);
  color: var(--cor-texto-suave);
  line-height: var(--lh-normal);
  margin-bottom: var(--esp-6);
}

.step-card__example {
  padding: var(--esp-4);
  background: hsl(0 0% 0% / 0.2);
  border-radius: var(--raio-md);
  border: 1px solid var(--cor-borda);
}

.step-card__file {
  font-size: var(--fs-mini);
  color: var(--cor-texto);
  display: block;
  margin-bottom: var(--esp-1);
}

.step-card__meta {
  font-size: 0.7rem;
  color: var(--cor-texto-suave);
  opacity: 0.7;
}

.step-card__highlight-label {
  display: inline-block;
  padding: 2px 8px;
  background: hsl(14 90% 58% / 0.15);
  color: var(--cor-accent);
  border-radius: var(--raio-sm);
  font-size: 0.65rem;
  font-weight: var(--peso-semi);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--esp-2);
}

.step-card__highlight p {
  font-size: var(--fs-mini);
  color: var(--cor-texto-suave);
  font-style: italic;
  line-height: 1.5;
}

.step-card__task-preview {
  display: flex;
  align-items: flex-start;
  gap: var(--esp-3);
}

.step-card__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--cor-accent);
  margin-top: 2px;
}

.step-card__task-title {
  font-size: var(--fs-mini);
  font-weight: var(--peso-semi);
  margin-bottom: 2px;
}

.step-card__task-meta {
  font-size: 0.7rem;
  color: var(--cor-texto-suave);
}

/* ═══════════════════ PRICING ═══════════════════ */
.pricing {
  padding: var(--esp-20) 0;
  background: var(--cor-superficie);
  border-top: 1px solid var(--cor-borda);
  border-bottom: 1px solid var(--cor-borda);
}

/* Toggle */
.pricing__toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--esp-4);
  margin-bottom: var(--esp-12);
}

.pricing__toggle-label {
  font-size: var(--fs-pequeno);
  font-weight: var(--peso-medio);
  color: var(--cor-texto-suave);
  transition: color var(--dur-fast);
  cursor: pointer;
}
.pricing__toggle-label[data-period="monthly"] { color: var(--cor-texto); }

.pricing__badge {
  display: inline-block;
  padding: 2px 8px;
  background: hsl(142 60% 48% / 0.15);
  color: var(--cor-sucesso);
  border-radius: var(--raio-pill);
  font-size: 0.7rem;
  font-weight: var(--peso-semi);
  margin-left: var(--esp-1);
}

.pricing__toggle {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--cor-superficie-2);
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-pill);
  transition: background var(--dur-normal);
}
.pricing__toggle[aria-checked="true"] {
  background: var(--cor-accent);
  border-color: var(--cor-accent);
}

.pricing__toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--dur-normal) var(--ease-spring);
  box-shadow: var(--sombra-sm);
}
.pricing__toggle[aria-checked="true"] .pricing__toggle-knob {
  transform: translateX(22px);
}

/* Price cards */
.pricing__grid {
  display: grid;
  gap: var(--esp-6);
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 48rem) {
  .pricing__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.price-card {
  position: relative;
  padding: var(--esp-8);
  background: var(--cor-fundo);
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-lg);
  transition: border-color var(--dur-normal), box-shadow var(--dur-normal);
}
.price-card:hover {
  border-color: hsl(0 0% 100% / 0.1);
}

.price-card--featured {
  border-color: var(--cor-accent);
  box-shadow: var(--sombra-glow);
}
.price-card--featured:hover {
  box-shadow: 0 0 32px hsl(14 90% 58% / 0.2);
}

.price-card__popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--esp-1) var(--esp-4);
  background: var(--cor-accent);
  color: #fff;
  border-radius: var(--raio-pill);
  font-size: var(--fs-mini);
  font-weight: var(--peso-bold);
  white-space: nowrap;
}

.price-card__name {
  font-family: var(--font-titulo);
  font-size: var(--fs-h3);
  font-weight: var(--peso-bold);
  margin-bottom: var(--esp-2);
}

.price-card__desc {
  font-size: var(--fs-pequeno);
  color: var(--cor-texto-suave);
  margin-bottom: var(--esp-6);
}

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: var(--esp-6);
  min-height: 52px;
}

.price-card__currency {
  font-size: 1.4rem;
  font-weight: var(--peso-semi);
  color: var(--cor-texto-suave);
  align-self: flex-start;
  margin-top: 6px;
}

.price-card__amount {
  font-family: var(--font-titulo);
  font-size: 3rem;
  font-weight: var(--peso-bold);
  line-height: 1;
  transition: opacity var(--dur-fast);
}

.price-card__amount--custom {
  font-size: 2rem;
}

.price-card__period {
  font-size: var(--fs-pequeno);
  color: var(--cor-texto-suave);
  margin-left: var(--esp-1);
}

.price-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--esp-3);
  margin-bottom: var(--esp-8);
}

.price-card__features li {
  position: relative;
  padding-left: var(--esp-6);
  font-size: var(--fs-pequeno);
  color: var(--cor-texto-suave);
  line-height: 1.5;
}

.price-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cor-accent);
  font-weight: var(--peso-bold);
}

/* ═══════════════════ WAITLIST ═══════════════════ */
.waitlist {
  padding: var(--esp-20) 0;
}

.waitlist__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.waitlist__title {
  font-family: var(--font-titulo);
  font-size: var(--fs-h1);
  font-weight: var(--peso-bold);
  line-height: var(--lh-tight);
  margin-bottom: var(--esp-4);
}

.waitlist__desc {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--cor-texto-suave);
  margin-bottom: var(--esp-10);
}

.waitlist__form {
  margin-bottom: var(--esp-4);
}

.waitlist__input-group {
  display: flex;
  gap: var(--esp-3);
  max-width: 480px;
  margin: 0 auto;
}

@media (max-width: 47.99rem) {
  .waitlist__input-group {
    flex-direction: column;
  }
}

.waitlist__input {
  flex: 1;
  padding: var(--esp-3) var(--esp-5);
  background: var(--cor-superficie);
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-md);
  color: var(--cor-texto);
  font-size: var(--fs-corpo);
  font-family: var(--font-corpo);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.waitlist__input::placeholder {
  color: var(--cor-texto-suave);
  opacity: 0.6;
}
.waitlist__input:focus {
  outline: none;
  border-color: var(--cor-accent);
  box-shadow: 0 0 0 3px hsl(14 90% 58% / 0.15);
}
.waitlist__input.has-error {
  border-color: var(--cor-erro);
  box-shadow: 0 0 0 3px hsl(0 72% 55% / 0.15);
}

.waitlist__submit {
  flex-shrink: 0;
}

.waitlist__error {
  font-size: var(--fs-pequeno);
  color: var(--cor-erro);
  margin-top: var(--esp-3);
  min-height: 1.4em;
}

.waitlist__hint {
  font-size: var(--fs-mini);
  color: var(--cor-texto-suave);
  opacity: 0.6;
  margin-top: var(--esp-3);
}

/* Success state */
.waitlist__success {
  padding: var(--esp-8);
  background: var(--cor-superficie);
  border: 1px solid hsl(142 60% 48% / 0.3);
  border-radius: var(--raio-lg);
  animation: fadeUp var(--dur-slow) var(--ease-out);
}

.waitlist__success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--esp-4);
}

.waitlist__success-title {
  font-family: var(--font-titulo);
  font-size: var(--fs-h3);
  font-weight: var(--peso-bold);
  margin-bottom: var(--esp-3);
}

.waitlist__success-text {
  font-size: var(--fs-pequeno);
  color: var(--cor-texto-suave);
  line-height: var(--lh-normal);
}
.waitlist__success-text strong {
  color: var(--cor-texto);
}

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

/* ═══════════════════ FOOTER ═══════════════════ */
.footer {
  padding: var(--esp-8) 0;
  border-top: 1px solid var(--cor-borda);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--esp-2);
  font-weight: var(--peso-bold);
  font-size: var(--fs-pequeno);
  color: var(--cor-texto-suave);
}

.footer__copy {
  font-size: var(--fs-mini);
  color: var(--cor-texto-suave);
  opacity: 0.5;
}

@media (max-width: 47.99rem) {
  .footer__inner {
    flex-direction: column;
    gap: var(--esp-3);
    text-align: center;
  }
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */

/* Small phones */
@media (max-width: 39.99rem) {
  .hero {
    padding-top: calc(64px + var(--esp-10));
    min-height: auto;
  }
  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__waveform {
    max-width: 280px;
  }
  .step-card {
    padding: var(--esp-6);
  }
  .price-card {
    padding: var(--esp-6);
  }
}

/* Tablet */
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .steps__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── Smooth number transition ── */
.price-card__amount {
  transition: opacity var(--dur-fast) ease;
}
.price-card__amount.is-changing {
  opacity: 0;
}

/* ── Scroll reveal animation ── */
@keyframes reveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
}
.reveal.is-visible {
  animation: reveal 0.6s var(--ease-out) forwards;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
