/* ============================================
   Refil.online — Landing Page
   Inspirada no layout do Turbine Fácil
============================================ */

:root {
  --green: #0FB982;
  --green-dark: #0a9d6e;
  --green-soft: #54c989;
  --violet-1: #7c3aed;
  --violet-2: #4c1d95;
  --dark: #23242a;
  --gray: #62636d;
  --gray-light: #f5f5f7;
  --yellow: #ffd401;
  --white: #ffffff;
  --border: #e6e7ea;
  --shadow-sm: 0 2px 6px rgba(0,0,0,.06);
  --shadow-md: 0 10px 30px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 60px rgba(76, 29, 149, .25);
}

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

html, body {
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow { max-width: 820px; }

/* ============= Top Bar ============= */
.topbar {
  background: var(--green-soft);
  color: var(--white);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}
.topbar i { font-size: 16px; }

/* ============= Header ============= */
.site-header {
  background: var(--white);
  height: 72px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  color: var(--dark);
}
.brand b { color: var(--green); font-weight: 700; }
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
/* Header: recolore a logo inteira em #FC2F6F usando mask-image */
.brand-logo-tinted {
  display: inline-block;
  height: 40px;
  width: 238px; /* 40 * (321/54) mantém o aspect ratio da PNG original */
  background-color: #FC2F6F;
  -webkit-mask: url('/img/logo.png') no-repeat center / contain;
          mask: url('/img/logo.png') no-repeat center / contain;
}
.brand-logo-footer {
  height: 34px;
  /* Deixa a logo clara no footer escuro */
  filter: brightness(0) invert(1);
}
.brand-icon {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--white);
  padding: 8px;
  border-radius: 10px;
  font-size: 18px;
}
.site-nav a {
  color: var(--gray);
  font-weight: 500;
  margin-left: 24px;
  transition: color .2s;
}
.site-nav a:hover { color: var(--green); }

/* ============= Hero ============= */
.hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 58, 237, .95) 0%, transparent 55%),
    linear-gradient(135deg, var(--violet-1) 0%, var(--violet-2) 100%);
  color: var(--white);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy .badge {
  display: inline-block;
  background: rgba(15, 185, 130, .2);
  color: #b3f5db;
  border: 1px solid rgba(15, 185, 130, .4);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 18px;
}
.hero-copy h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-highlight {
  color: #b3f5db;
}
.hero-lead {
  font-size: 18px;
  color: rgba(255,255,255,.85);
  margin-bottom: 28px;
  max-width: 520px;
}
.hero-benefits {
  list-style: none;
  margin-bottom: 32px;
}
.hero-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
  color: rgba(255,255,255,.92);
}
.hero-benefits i {
  background: var(--green);
  color: var(--white);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

/* Reviews (mini) */
.reviews {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
}
.review-avatars { display: flex; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px solid var(--violet-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  margin-left: -10px;
}
.avatar:first-child { margin-left: 0; }
.review-text .stars {
  color: var(--yellow);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.review-text .stars strong {
  color: var(--white);
  margin-left: 6px;
}
.review-text small {
  color: rgba(255,255,255,.75);
  font-size: 13px;
}

/* ============= Botões ============= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  text-align: center;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(15, 185, 130, .35);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 185, 130, .45);
}
.btn-primary:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}
.btn-lg { padding: 18px 34px; font-size: 17px; }
.btn-block { width: 100%; }

/* ============= Form Card ============= */
.form-card {
  background: var(--white);
  color: var(--dark);
  padding: 34px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.form-head { text-align: center; margin-bottom: 22px; }
.form-icon {
  width: 60px; height: 60px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--white);
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.form-head h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.form-head p { color: var(--gray); font-size: 14px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  color: var(--dark);
  background: var(--gray-light);
  transition: border .15s, background .15s;
  margin-bottom: 18px;
}
.form-input:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}
.form-guarantee {
  margin-top: 14px;
  text-align: center;
  color: var(--gray);
  font-size: 13px;
}
.form-guarantee i { color: var(--green); margin-right: 4px; }

/* ============= Sections base ============= */
section { padding: 80px 0; }
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  color: var(--dark);
  margin-bottom: 10px;
}
.section-lead {
  text-align: center;
  color: var(--gray);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 50px;
}

/* ============= Features ============= */
.features { background: var(--gray-light); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  padding: 30px 24px;
  border-radius: 16px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: rgba(15, 185, 130, .12);
  color: var(--green);
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feature-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.feature-card p { color: var(--gray); font-size: 14px; }

/* ============= Steps ============= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 26px;
  text-align: center;
  position: relative;
}
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-1), var(--violet-2));
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 6px 14px rgba(124, 58, 237, .35);
}
.step-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--gray); font-size: 15px; }

/* ============= FAQ ============= */
.faq { background: var(--gray-light); }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item summary {
  font-weight: 700;
  font-size: 16px;
  color: var(--dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--green);
  font-weight: 700;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  color: var(--gray);
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
}

/* ============= Footer ============= */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 40px 0 30px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.brand-footer { color: var(--white); font-size: 20px; }
.brand-footer b { color: var(--green); }
.footer-copy {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.footer-badges { display: flex; gap: 18px; font-size: 13px; }
.footer-badges i { color: var(--green); margin-right: 4px; }

/* ============= Messages (form response) ============= */
.message-box { margin-top: 20px; }
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}
.alert i { font-size: 20px; margin-top: 2px; }
.alert-success {
  background: rgba(15, 185, 130, .1);
  border: 1px solid rgba(15, 185, 130, .3);
  color: #0a5f42;
}
.alert-success i { color: var(--green); }
.alert-error {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .3);
  color: #7f1d1d;
}
.alert-error i { color: #ef4444; }
.alert-footer {
  text-align: center;
  font-size: 13px;
  color: var(--gray);
  margin-top: 12px;
}
.profile-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--gray-light);
  padding: 14px;
  border-radius: 12px;
  margin-top: 14px;
}
.profile-img {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
}
.profile-name { font-weight: 700; color: var(--dark); }
.profile-user { color: var(--gray); font-size: 13px; }
.profile-stats {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--gray);
}
.profile-stats strong { color: var(--dark); }
.refill-amount {
  margin-top: 12px;
  background: rgba(15, 185, 130, .1);
  border: 1px solid rgba(15, 185, 130, .3);
  color: #0a5f42;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============= Responsive ============= */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy h1 { font-size: 2.2rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.8rem; }
  section { padding: 60px 0; }
  .site-nav { display: none; }
}

@media (max-width: 560px) {
  .hero { padding: 50px 0 70px; }
  .hero-copy h1 { font-size: 1.9rem; }
  .hero-lead { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { justify-content: center; text-align: center; flex-direction: column; }
}
