/* ==============================
   Fatura em Dia | Claro
   Folha de estilos (CSS puro)
   ============================== */

:root {
  --claro-red: #e30613;
  --claro-red-dark: #b8040f;
  --claro-orange: #f26522;
  --claro-orange-dark: #d9541a;
  --claro-ink: #1c1c1c;
  --claro-muted: #5f6672;
  --claro-bg: #f5f7fa;
  --claro-white: #ffffff;
  --claro-radius: 14px;
  --claro-max: 1240px;
  --claro-font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--claro-font);
  color: var(--claro-ink);
  background: var(--claro-bg);
  line-height: 1.5;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.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;
}

/* TOPBAR */
.topbar {
  background: var(--claro-red);
  display: flex;
  justify-content: flex-start;
  padding: 14px 20px;
}
.topbar__logo { display: block; height: 34px; width: auto; filter: brightness(0) invert(1); }

/* HERO */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--claro-red);
}
.hero__media { position: relative; background: #000; overflow: hidden; min-height: 420px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 20% center; position: absolute; inset: 0; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0) 80%);
  z-index: 1;
}
.hero__content {
  padding: 56px clamp(20px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
}
.hero__text {
  position: absolute;
  left: clamp(20px, 6vw, 110px);
  top: 50%;
  transform: translateY(-50%);
  max-width: 420px;
  color: var(--claro-white);
  z-index: 2;
}
.hero__text h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero__text p {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 19px);
  color: rgba(255,255,255,0.92);
}

/* FORM */
.card-form { max-width: 460px; width: 100%; margin-left: auto; color: var(--claro-white); }
.card-form__label {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--claro-white);
  padding-bottom: 4px; margin-bottom: 18px;
}
.card-form input[type="tel"] {
  width: 100%; border: 0; border-radius: 999px;
  padding: 18px 24px; font-size: 16px; font-family: inherit;
  color: var(--claro-ink); background: var(--claro-white);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.card-form input[type="tel"]:focus-visible {
  outline: 3px solid rgba(255,255,255,0.7); outline-offset: 2px;
}
.check {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 16px 0 18px; font-size: 13.5px; color: var(--claro-white);
}
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--claro-white); flex: 0 0 auto; }
.check a { font-weight: 700; text-decoration: underline; }
.btn {
  width: 100%; border: 0; border-radius: 999px;
  padding: 18px 24px; font: 700 17px/1 var(--claro-font);
  color: var(--claro-white);
  background: linear-gradient(180deg, #f6864a, var(--claro-orange));
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, filter 0.2s ease;
}
.btn:hover { filter: brightness(0.95); }
.btn:active { transform: scale(0.99); }
.hint {
  display: flex; align-items: center; gap: 8px;
  margin: 14px 0 0; font-size: 13px; color: rgba(255,255,255,0.9);
}
.hint svg { width: 18px; height: 18px; flex: 0 0 auto; }
.hint.is-error { color: #ffe08a; font-weight: 700; }

/* BENEFITS */
.benefits { padding: 64px 20px 24px; }
.benefits__grid {
  max-width: var(--claro-max); margin: 0 auto; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.benefit {
  background: var(--claro-white);
  border: 1px solid rgba(227,6,19,0.35);
  border-radius: var(--claro-radius);
  padding: 40px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; min-height: 220px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.benefit:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(227,6,19,0.12); }
.benefit svg { width: 46px; height: 46px; color: var(--claro-red); }
.benefit h2 { margin: 0; font-size: 17px; font-weight: 700; color: var(--claro-red); }

/* STEPS */
.steps { padding: 40px 20px 64px; }
.steps__box {
  position: relative; max-width: var(--claro-max); margin: 0 auto;
  background: var(--claro-red); border-radius: 20px;
  padding: 64px 32px 48px;
}
.steps__tag {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  background: var(--claro-red); color: var(--claro-white);
  font-size: 14px; font-weight: 700; padding: 8px 22px;
  border-radius: 10px 10px 0 0; white-space: nowrap;
}
.steps__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  color: var(--claro-white); text-align: center;
}
.steps__grid li { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.steps__grid svg { width: 40px; height: 40px; }
.steps__grid p { margin: 0; font-size: 15.5px; }
.steps__grid b { font-weight: 700; }

/* ABOUT */
.about { padding: 8px 20px 64px; }
.about__inner {
  max-width: 900px; margin: 0 auto;
  background: var(--claro-white); border-radius: var(--claro-radius);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 8px 24px rgba(20,25,40,0.06);
}
.about h2 { margin: 0 0 16px; font-size: clamp(21px, 2.4vw, 28px); color: var(--claro-red); }
.about__lead { margin: 0 0 8px; font-weight: 700; }
.about__list { margin: 0 0 20px; padding-left: 20px; color: var(--claro-muted); }
.about p { color: var(--claro-muted); }

/* FAQ */
.faq { padding: 0 20px 72px; }
.faq__inner { max-width: 900px; margin: 0 auto; }
.faq h2 { margin: 0 0 8px; font-size: clamp(21px, 2.4vw, 28px); color: var(--claro-red); text-align: center; }
.faq__sub { margin: 0 auto 28px; text-align: center; color: var(--claro-muted); max-width: 560px; }
.accordion { display: grid; gap: 12px; }
.accordion details {
  background: var(--claro-white); border: 1px solid #e5e8ee;
  border-radius: 12px; padding: 4px 20px;
}
.accordion details[open] { border-color: rgba(227,6,19,0.4); }
.accordion summary {
  cursor: pointer; list-style: none; font-weight: 700;
  padding: 16px 32px 16px 0; position: relative;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; position: absolute; right: 4px; top: 22px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--claro-red);
  border-bottom: 2px solid var(--claro-red);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.accordion details[open] summary::after { transform: rotate(-135deg); }
.accordion details p { margin: 0 0 18px; color: var(--claro-muted); }

/* FOOTER */
.footer {
  background: var(--claro-red); color: var(--claro-white);
  text-align: center; padding: 26px 20px; font-size: 14px;
}
.footer p { margin: 12px 0 0; }
.footer__logo { display: inline-block; height: 30px; width: auto; filter: brightness(0) invert(1); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .benefits__grid, .steps__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { height: 360px; min-height: 320px; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.75) 100%);
  }
  .hero__text {
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%; text-align: center;
  }
  .hero__content { padding: 32px 20px 44px; }
  .card-form { margin: 0 auto; }
}
@media (max-width: 560px) {
  .benefits { padding-top: 40px; }
  .benefits__grid { grid-template-columns: 1fr; gap: 16px; }
  .benefit { min-height: 0; padding: 28px 20px; }
  .steps__grid { grid-template-columns: 1fr; }
  .steps__box { padding: 56px 20px 36px; }
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: var(--claro-white);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
  padding: 20px;
}
.cookie-banner__content {
  max-width: var(--claro-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-banner__content p {
  margin: 0;
  font-size: 14px;
  color: var(--claro-ink);
  line-height: 1.55;
}
.cookie-banner__link {
  color: var(--claro-red);
  font-weight: 700;
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}
.cookie-banner__btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  font: 700 14px/1 var(--claro-font);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, filter 0.2s ease;
  white-space: nowrap;
}
.cookie-banner__btn:hover { filter: brightness(0.95); }
.cookie-banner__btn:active { transform: scale(0.98); }
.cookie-banner__btn--primary {
  background: var(--claro-red);
  color: var(--claro-white);
}
.cookie-banner__btn--secondary {
  background: transparent;
  color: var(--claro-red);
  box-shadow: inset 0 0 0 2px var(--claro-red);
}
.cookie-banner__btn--secondary:hover { background: rgba(227,6,19,0.06); }

@media (max-width: 720px) {
  .cookie-banner__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__btn { flex: 1 1 50%; text-align: center; }
}
