/* =========================================================
   Desconto na Luz — landing page
   Mobile-first, acessível, paleta verde + amarelo suave
   ========================================================= */

:root {
  --green-50:  #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #a7f3d0;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --green-800: #065f46;

  --yellow-50:  #fefce8;
  --yellow-100: #fef9c3;
  --yellow-200: #fef08a;
  --yellow-300: #fde047;
  --yellow-400: #facc15;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --ink-100: #f1f5f9;

  --white: #ffffff;
  --bg:    #fbfdf9;

  --wa: #25d366;
  --wa-dark: #128c7e;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow:    0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.12);

  --container: 1140px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

/* ----------- A11y ----------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-900);
  color: #fff;
  padding: 10px 14px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ----------- Layout ----------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --btn-bg: var(--green-600);
  --btn-fg: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease, border-color 0.15s ease;
  box-shadow: var(--shadow-sm);
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --btn-bg: var(--wa);
  --btn-fg: #fff;
  background: linear-gradient(180deg, #2bd470 0%, #1fb85f 100%);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #28c668 0%, #199f52 100%);
}

.btn--ghost {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-200);
}
.btn--ghost:hover {
  background: var(--green-50);
}

.btn--lg {
  padding: 16px 26px;
  font-size: 1.05rem;
}
.btn--sm {
  padding: 9px 14px;
  font-size: 0.9rem;
}

/* WhatsApp icon — SVG inline com fill via currentColor */
.icon-wa {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}
.icon-wa--lg {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 18px 0 48px;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--yellow-100), transparent 60%),
    radial-gradient(1000px 500px at -10% 110%, var(--green-100), transparent 60%),
    linear-gradient(180deg, var(--bg), #fff);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.hero__logo {
  display: block;
  width: clamp(110px, 20vw, 150px);
  height: auto;
  margin: 0 0 6px;
}

.hero__title {
  font-size: clamp(1.85rem, 5vw + 0.4rem, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 16px;
}

.text-accent {
  background: linear-gradient(120deg, var(--green-600), var(--green-500) 50%, var(--yellow-400));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.hero__subtitle {
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.2rem);
  color: var(--ink-700);
  max-width: 60ch;
  margin-bottom: 22px;
}

.hero__video {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  margin: 0 0 22px;
  border-radius: var(--radius);
  overflow: hidden;
  background: transparent;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  isolation: isolate;
}

/*
 * O player Tynk usa <div class="...bg-black min-h-screen"> internamente,
 * o que cria letterbox preto em volta do vídeo — algo que não conseguimos
 * remover via CSS porque o iframe é cross-origin. A solução é ampliar o
 * iframe e usar overflow:hidden para cortar as bordas pretas do player.
 */
.hero__video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  transform: translate(-50%, -50%) scale(1.15);
  transform-origin: center;
}

.hero__bullets {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 18px;
  margin-bottom: 28px;
}
.hero__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-700);
  font-size: 0.97rem;
}
.check {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-100);
  position: relative;
  margin-top: 1px;
}
.check::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green-700);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")
    center / 60% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")
    center / 60% no-repeat;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.hero__cta .btn {
  width: 100%;
}
.hero__cta-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-500);
}

/* Hero visual / card */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.hero__card {
  position: relative;
  z-index: 2;
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  width: 100%;
  max-width: 380px;
}

.hero__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.hero__card-label {
  font-size: 0.82rem;
  color: var(--ink-500);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero__card-badge {
  background: var(--yellow-200);
  color: #854d0e;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--yellow-300);
}

.hero__card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--ink-100);
  color: var(--ink-700);
  font-size: 0.95rem;
}
.hero__card-row strong {
  color: var(--ink-900);
}
.hero__card-row--strike strong {
  text-decoration: line-through;
  color: var(--ink-500);
  font-weight: 600;
}
.hero__card-row--accent {
  color: var(--green-700);
  font-weight: 700;
  border-bottom: none;
  padding-bottom: 6px;
}
.hero__card-row--accent strong {
  color: var(--green-700);
  font-size: 1.15rem;
}

.hero__card-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--green-100);
  overflow: hidden;
  margin: 6px 0 14px;
}
.hero__card-bar-fill {
  height: 100%;
  width: 85%;
  background: linear-gradient(90deg, var(--green-500), var(--yellow-400));
  border-radius: 999px;
}

.hero__card-foot {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ink-500);
  line-height: 1.45;
}

/* Decorative bubbles */
.hero__bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  z-index: 1;
  opacity: 0.9;
}
.hero__bubble--sun {
  width: 130px;
  height: 130px;
  top: -10px;
  right: 4%;
  background: radial-gradient(circle at 35% 35%, #fff7c2, var(--yellow-300) 70%);
  box-shadow: 0 18px 40px rgba(250, 204, 21, 0.35);
}
.hero__bubble--leaf {
  width: 90px;
  height: 90px;
  bottom: -10px;
  left: 6%;
  background: radial-gradient(circle at 35% 35%, #d1fae5, var(--green-500) 90%);
  box-shadow: 0 18px 40px rgba(16, 185, 129, 0.3);
}

/* ============================================================
   "Como funciona?" + FAQ
   ============================================================ */
.how {
  padding: 64px 0 80px;
  background: var(--white);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}
.section-title {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  color: var(--ink-900);
  margin-bottom: 12px;
}
.section-lead {
  color: var(--ink-700);
  font-size: 1.02rem;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  counter-reset: step;
  margin-bottom: 28px;
}

.step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--green-200);
}
.step__num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.3);
}
.step__title {
  font-size: 1.1rem;
  color: var(--ink-900);
  margin-bottom: 6px;
}
.step__text {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.97rem;
}

.how__cta {
  display: flex;
  justify-content: center;
  margin: 8px 0 56px;
}
.how__cta .btn {
  width: 100%;
  max-width: 360px;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq__title {
  text-align: center;
  font-size: clamp(1.4rem, 1.6vw + 0.9rem, 1.9rem);
  margin-bottom: 22px;
}

.faq__list {
  display: grid;
  gap: 10px;
}

.faq__item {
  background: var(--bg);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.faq__item[open] {
  border-color: var(--green-200);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.faq__question {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 1rem;
}
.faq__question::-webkit-details-marker {
  display: none;
}

.faq__icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  transition: transform 0.25s ease;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--green-700);
  border-radius: 2px;
}
.faq__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}
.faq__icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.faq__item[open] .faq__icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq__answer {
  padding: 0 18px 16px;
  color: var(--ink-700);
  font-size: 0.97rem;
}
.faq__answer p {
  margin: 0;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink-900);
  color: #cbd5e1;
  padding: 28px 0;
}
.site-footer__inner {
  display: grid;
  gap: 8px;
  text-align: center;
}
.site-footer__copy {
  margin: 0;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ============================================================
   Floating WhatsApp button
   ============================================================ */
.fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wa);
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.55);
}
.fab__label {
  display: none;
}

/* ============================================================
   Tablet / Desktop
   ============================================================ */
@media (min-width: 640px) {
  .hero__bullets {
    grid-template-columns: 1fr 1fr;
  }
  .hero__cta {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .hero__cta .btn {
    width: auto;
  }
  .fab__label {
    display: inline;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .site-footer__inner {
    gap: 6px;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 56px 0 72px;
  }
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
  }
  .hero__visual {
    min-height: 420px;
  }
  .hero__card {
    max-width: 420px;
  }
  .hero__bubble--sun {
    width: 180px;
    height: 180px;
    top: -20px;
    right: -10px;
  }
  .hero__bubble--leaf {
    width: 130px;
    height: 130px;
    bottom: -20px;
    left: -10px;
  }
}

/* ============================================================
   Reduce motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
