/* ==========================================================================
   EvoSolar Além Paraíba — Manual do Cliente
   Sistema editorial: display Fraunces + corpo Inter, marca navy/azul/laranja.
   Mobile validado nos breakpoints 1040px / 760px / 420px.
   ========================================================================== */

:root {
  /* Marca EvoSolar */
  --navy: #071846;
  --navy-700: #0b2c6d;
  --blue: #2068d0;
  --blue-700: #185cbe;
  --orange: #f28c28;
  --orange-700: #c86b11;
  --orange-050: #fff3e3;

  /* Tinta e papel */
  --ink: #0c1733;
  --ink-soft: #56617d;
  --ink-faint: #8893a8;
  --paper: #ffffff;
  --paper-2: #f6f8fc;
  --paper-3: #eef2f9;
  --line: #e5eaf3;
  --line-strong: #d3dcec;
  --on-dark: #ffffff;
  --on-dark-soft: rgba(255, 255, 255, 0.72);
  --on-dark-line: rgba(255, 255, 255, 0.14);

  /* WhatsApp (somente botões WA) */
  --whatsapp: #25d366;
  --whatsapp-hover: #1da851;

  /* Tipografia */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --fs-display: clamp(2.9rem, 7.4vw, 5.25rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.1rem);
  --fs-h3: 1.22rem;
  --fs-lead: clamp(1.1rem, 1.5vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-eyebrow: 0.76rem;

  /* Ritmo / layout */
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Elevação refinada e em camadas */
  --shadow-sm: 0 1px 2px rgba(7, 20, 48, 0.05), 0 3px 10px rgba(7, 20, 48, 0.05);
  --shadow-md: 0 4px 14px rgba(7, 20, 48, 0.07), 0 16px 38px rgba(7, 20, 48, 0.08);
  --shadow-lg: 0 12px 30px rgba(7, 20, 48, 0.1), 0 30px 70px rgba(7, 20, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(242, 140, 40, 0.22);
}

/* --------------------------------------------------------------------------
   Tipografia utilitária
   -------------------------------------------------------------------------- */

.hero-eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--orange-700);
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

.hero-eyebrow::before,
.section-label::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--orange);
}

/* --------------------------------------------------------------------------
   Containers de seção
   -------------------------------------------------------------------------- */

.intro-band,
.section,
.referral-section,
.contact-section,
.site-footer {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

/* Seções de largura total (fundo sangra; conteúdo centralizado) */
.post-sale-section,
.video-section,
.bill-section {
  width: 100%;
  max-width: none;
  padding-inline: var(--gutter);
}

.post-sale-section > *,
.video-section > *,
.bill-section > * {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px max(var(--gutter), calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(7, 24, 70, 0.16);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  transition: color 160ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

/* CTA primária (marca laranja) — usada no hero. NÃO é WhatsApp. */
.button-primary {
  background: var(--navy);
  color: var(--on-dark);
  box-shadow: var(--shadow-md);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--navy-700);
  box-shadow: var(--shadow-lg);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--navy);
}

.button-header {
  min-height: 46px;
  padding: 11px 20px;
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.button-header:hover,
.button-header:focus-visible {
  border-color: var(--navy);
  background: var(--paper-2);
}

/* Botões de WhatsApp — único verde do site */
.js-whatsapp.button-primary {
  background: var(--whatsapp);
  color: var(--on-dark);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
}

.js-whatsapp.button-primary:hover,
.js-whatsapp.button-primary:focus-visible {
  background: var(--whatsapp-hover);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.34);
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.icon svg {
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 0% 0%, var(--orange-050) 0%, rgba(255, 243, 227, 0) 42%),
    var(--paper);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 6vw, 84px) clamp(32px, 4vw, 56px) clamp(44px, 6vw, 84px)
    max(var(--gutter), calc((100vw - var(--max)) / 2));
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.owner-line {
  margin: 22px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 22ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 500;
}

.owner-line::first-letter {
  text-transform: none;
}

.hero-text {
  max-width: 46ch;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

/* Hero: a Marília no escritório, foto inteira (tamanho contido) sobre extensão desfocada */
.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--navy-700);
}

.hero-visual picture {
  display: contents;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

/* Caption editorial da Marília */
.owner-card {
  position: absolute;
  left: clamp(18px, 3.5vw, 40px);
  bottom: clamp(22px, 4vw, 40px);
  z-index: 2;
  width: min(298px, calc(100% - 2 * clamp(18px, 3.5vw, 40px)));
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow-lg);
}

.owner-card h2,
.owner-card p {
  margin: 0;
}

.owner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--orange-700);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.owner-kicker::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--orange);
}

.owner-card h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.32rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.owner-card > p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 500;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.social-row a {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.social-row a:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(7, 24, 70, 0.04);
}

/* --------------------------------------------------------------------------
   Intro band
   -------------------------------------------------------------------------- */

.intro-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  padding: clamp(40px, 6vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}

.intro-band h2,
.intro-band p {
  margin: 0;
}

.intro-band h2 {
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.intro-band p {
  max-width: 60ch;
  margin-top: 14px;
  color: var(--ink-soft);
}

.text-link {
  white-space: nowrap;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1.5px solid var(--orange);
  padding-bottom: 3px;
  transition: color 160ms ease, border-color 160ms ease;
}

.text-link:hover {
  color: var(--orange-700);
}

/* --------------------------------------------------------------------------
   Seção base + cabeçalhos
   -------------------------------------------------------------------------- */

.section {
  padding: var(--section-y) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading.center .section-label {
  justify-content: center;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.section h2,
.referral-section h2,
.contact-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.section-heading p:not(.section-label),
.split-section > div > p:not(.section-label),
.plain-panel > p:not(.section-label),
.referral-section p:not(.section-label),
.contact-section p:not(.section-label) {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

/* --------------------------------------------------------------------------
   Acompanhamento (#pos-venda)
   -------------------------------------------------------------------------- */

.post-sale-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.post-sale-section .section-heading {
  max-width: 760px;
}

.post-sale-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-sale-grid article {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.post-sale-grid article:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.post-sale-grid span {
  display: block;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--orange-700);
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.post-sale-grid h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.34rem;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.post-sale-grid p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Vídeos (#videos)
   -------------------------------------------------------------------------- */

.video-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--paper);
}

.video-section .section-heading {
  max-width: 820px;
}

.video-grid {
  display: grid;
  grid-template-columns: 1.16fr 1fr 1fr;
  gap: 20px;
}

.video-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.video-thumb {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 188px;
  place-items: center;
  border: 0;
  background:
    linear-gradient(180deg, rgba(7, 24, 70, 0.18), rgba(7, 24, 70, 0.62)),
    url("assets/solar-roof-hero.png") center / cover;
  color: var(--on-dark);
  cursor: pointer;
}

.video-card:first-child .video-thumb {
  min-height: 232px;
}

.video-thumb span:last-child {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 8px rgba(7, 24, 70, 0.5);
}

.play-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(7, 24, 70, 0.28);
  transition: transform 200ms ease;
}

.video-card:hover .play-icon {
  transform: scale(1.06);
}

.play-icon::before {
  content: "";
  margin-left: 4px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid var(--orange);
}

.video-card h3,
.video-card p {
  padding-inline: 22px;
}

.video-card h3 {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.16rem;
  line-height: 1.18;
  color: var(--navy);
}

.video-card p {
  margin: 10px 0 22px;
  color: var(--ink-soft);
}

/* Facade do YouTube: thumb (poster do YT) com botão de play. O iframe só entra
   ao clicar (app.js), protegendo a conexão fraca. */
.video-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Play e selo acima do poster (que é absoluto). */
.video-thumb .play-icon {
  position: relative;
  z-index: 1;
}

.video-thumb span:last-child {
  z-index: 1;
}

/* Iframe do YouTube injetado no lugar da thumb ao tocar. */
.video-embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 188px;
  border: 0;
}

.video-card:first-child .video-embed {
  min-height: 232px;
}

.video-card.is-pending .video-thumb {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.video-card.is-pending .video-thumb::after {
  content: "Vídeo ainda não cadastrado";
  position: absolute;
  left: 16px;
  bottom: 14px;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Dúvidas (#duvidas) — busca + acordeão
   -------------------------------------------------------------------------- */

.support-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.4fr) minmax(420px, 0.6fr);
  gap: clamp(36px, 5vw, 60px);
  align-items: start;
}

.support-section .section-heading {
  margin-bottom: 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0 18px;
  background: var(--paper);
  color: var(--ink-faint);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(32, 104, 208, 0.12);
}

.search-box input {
  width: 100%;
  min-height: 58px;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 1rem;
  background: transparent;
}

.accordion-list {
  display: grid;
  gap: 10px;
}

.accordion-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.accordion-item.is-open {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.accordion-item[hidden] {
  display: none;
}

.accordion-item button {
  display: flex;
  width: 100%;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  padding: 18px 22px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
}

.accordion-item button:hover {
  color: var(--blue-700);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 240ms ease;
}

.accordion-panel > p {
  overflow: hidden;
  margin: 0;
  padding: 0 22px;
  color: var(--ink-soft);
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-item.is-open .accordion-panel > p {
  padding-bottom: 20px;
}

/* Wrapper para respostas com múltiplos parágrafos e/ou listas: fica como filho
   único do painel (mantém a animação grid 0fr→1fr), e o conteúdo flui dentro. */
.accordion-panel > .accordion-body {
  overflow: hidden;
  padding: 0 22px;
  color: var(--ink-soft);
}

.accordion-body > * {
  margin: 0;
}

.accordion-body > * + * {
  margin-top: 12px;
}

.accordion-body ul {
  padding-left: 20px;
  list-style: disc;
}

.accordion-body li + li {
  margin-top: 6px;
}

.accordion-item.is-open .accordion-panel > .accordion-body {
  padding-bottom: 20px;
}

.chevron {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg);
  transition: transform 200ms ease;
}

.accordion-item.is-open .chevron {
  transform: rotate(225deg);
}

.no-results {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--ink-soft);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Etapas (#etapas) — linha do tempo (sequência real → numeração legítima)
   -------------------------------------------------------------------------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.timeline article {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.timeline article span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--on-dark);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.timeline article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 38px;
  left: 60px;
  width: calc(100% - 38px);
  height: 1px;
  background: var(--line-strong);
}

.timeline h3,
.bill-grid h3,
.plain-panel h2,
.video-card h3 {
  margin: 0;
  line-height: 1.2;
  color: var(--navy);
}

.timeline h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.08rem;
}

.timeline p,
.bill-grid p,
.plain-panel p:not(.section-label) {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

/* Avisos / dicas — repaginados, sem o amarelo "oliva" antigo */
.notice,
.tip-panel {
  position: relative;
  margin-top: 28px;
  padding: 22px 24px 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--orange-050);
  color: var(--ink);
}

.notice::before,
.tip-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--orange);
}

.notice strong,
.tip-panel strong {
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   Conta de luz (#conta)
   -------------------------------------------------------------------------- */

.bill-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bill-grid article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.card-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 14px;
}

.card-icon[data-tone="yellow"] {
  background: var(--orange-050);
  color: var(--orange-700);
}

.card-icon[data-tone="primary"] {
  background: #eaf2ff;
  color: var(--blue);
}

.card-icon[data-tone="blue"] {
  background: #e6f4fb;
  color: #1c6a94;
}

.bill-grid h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.34rem;
}

.bill-grid ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--ink);
  font-weight: 500;
}

.bill-grid li {
  margin-top: 4px;
}

.small-note {
  margin-top: 12px !important;
  color: var(--ink) !important;
  font-size: 0.92rem;
  font-weight: 500;
}

.tip-panel {
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   App / monitoramento (#app) — SIGNATURE: painel de geração em navy
   -------------------------------------------------------------------------- */

#app {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(300px, 0.6fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  width: 100%;
  max-width: none;
  margin-top: 0;
  padding: clamp(64px, 9vw, 110px) max(var(--gutter), calc((100vw - var(--max)) / 2));
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(32, 104, 208, 0.32) 0%, rgba(32, 104, 208, 0) 55%),
    var(--navy);
  color: var(--on-dark);
  overflow: hidden;
}

#app.section + .section,
.section + #app.section {
  border-top: 0;
}

#app .section-label {
  color: var(--orange);
}

#app .section-label::before {
  background: var(--orange);
}

#app h2 {
  color: var(--on-dark);
}

#app > div > p:not(.section-label) {
  color: var(--on-dark-soft);
}

.split-section {
  /* o layout de #app é controlado acima; esta classe permanece para o markup */
  display: contents;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: inherit;
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
}

.check-list li::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 6px;
  width: 6px;
  height: 9px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
}

/* No #app (fundo escuro) a check-list fica sobre navy */
#app .check-list li {
  color: var(--on-dark);
}

/* Painel "device" — dashboard de geração, grau instrumento */
.phone-panel {
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
}

.phone {
  width: min(320px, 90vw);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}

.phone-status {
  width: 64px;
  height: 5px;
  margin: 2px auto 20px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
}

.phone-card {
  padding: 20px;
  border-radius: 16px;
  background: rgba(7, 24, 70, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-card > span,
.phone-row span {
  display: block;
  color: var(--on-dark-soft);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-card strong {
  display: block;
  margin-top: 6px;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.32rem;
}

.generation-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 9px;
  height: 104px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.generation-bars i {
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #f9b15c 0%, var(--orange) 100%);
  box-shadow: 0 0 18px rgba(242, 140, 40, 0.35);
}

.phone-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 13px 14px;
}

.phone-row span {
  color: var(--on-dark-soft);
}

.phone-row strong {
  color: var(--orange);
  font-size: 0.86rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Cuidados + Garantia (#garantia)
   -------------------------------------------------------------------------- */

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.plain-panel {
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.plain-panel h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
}

/* check-list fora do #app (fundo claro) */
.plain-panel .check-list li {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Indicação (#referral)
   -------------------------------------------------------------------------- */

.referral-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  margin-top: 0;
  padding: clamp(40px, 5vw, 56px) clamp(32px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  margin-bottom: var(--section-y);
}

.referral-section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
}

/* --------------------------------------------------------------------------
   Atendimento (#contato)
   -------------------------------------------------------------------------- */

.contact-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(56px, 8vw, 88px) max(var(--gutter), calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.contact-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.contact-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */

.site-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(56px, 7vw, 84px) max(var(--gutter), calc((100vw - var(--max)) / 2))
    clamp(72px, 8vw, 96px);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(32, 104, 208, 0.22) 0%, rgba(32, 104, 208, 0) 55%),
    var(--navy);
  color: var(--on-dark);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-bottom: clamp(28px, 3vw, 40px);
  border-bottom: 1px solid var(--on-dark-line);
}

.footer-brand-col {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.footer-brand {
  color: var(--on-dark);
}

.footer-brand .brand-logo {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

.footer-brand-col p {
  margin: 0;
  max-width: 38ch;
  color: var(--on-dark-soft);
}

.footer-nav,
.footer-contact {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-nav h3,
.footer-contact h3 {
  margin: 0 0 4px;
  color: var(--on-dark);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-nav a,
.footer-contact a {
  width: fit-content;
  color: var(--on-dark-soft);
  font-weight: 500;
  transition: color 160ms ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--on-dark);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  margin-top: clamp(24px, 3vw, 32px);
  color: var(--on-dark-soft);
  font-size: 0.86rem;
}

.footer-bottom p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   WhatsApp flutuante (mobile)
   -------------------------------------------------------------------------- */

.mobile-whatsapp {
  position: fixed;
  right: clamp(18px, 2vw, 28px);
  bottom: clamp(18px, 2vw, 28px);
  z-index: 30;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--on-dark);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 16px 30px rgba(37, 211, 102, 0.36);
  transform: translateY(14px) scale(0.94);
  transition: opacity 200ms ease, transform 200ms ease;
}

.mobile-whatsapp .icon {
  width: 26px;
  height: 26px;
}

.mobile-whatsapp.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* --------------------------------------------------------------------------
   Motion — entrada do hero + reveal no scroll (degradam com segurança)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  @keyframes evo-rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .hero-copy > * {
    animation: evo-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .hero-eyebrow {
    animation-delay: 0.05s;
  }
  .hero h1 {
    animation-delay: 0.12s;
  }
  .owner-line {
    animation-delay: 0.2s;
  }
  .hero-text {
    animation-delay: 0.28s;
  }
  .hero-actions {
    animation-delay: 0.36s;
  }

  .owner-card {
    animation: evo-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.5s;
  }

  /* Reveal no scroll: estado inicial só é aplicado via JS (.reveal),
     então sem JS o conteúdo fica visível. */
  .reveal {
    opacity: 0;
    transform: translateY(20px);
  }

  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

/* --------------------------------------------------------------------------
   Responsivo — breakpoints 1040 / 760 / 420
   -------------------------------------------------------------------------- */

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2));
  }

  .hero-visual {
    min-height: 480px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  #app {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline article:not(:last-child)::after {
    display: none;
  }

  .support-section {
    grid-template-columns: 1fr;
  }

  .support-section .section-heading {
    position: static;
    margin-bottom: 28px;
  }

  .post-sale-grid,
  .bill-grid,
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }

  .video-grid > .video-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }

  /* Ritmo vertical um pouco mais compacto no mobile */
  :root {
    --section-y: 48px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  #app {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .contact-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .site-header {
    min-height: 64px;
    padding: 12px 18px;
  }

  .site-header .button {
    display: none;
  }

  .brand {
    font-size: 0.96rem;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .hero-copy {
    padding: 48px 22px 40px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-visual {
    min-height: 420px;
  }

  .owner-card {
    bottom: 22px;
  }

  .intro-band {
    grid-template-columns: 1fr;
    padding: 36px 0;
  }

  .post-sale-grid,
  .bill-grid,
  .video-grid,
  .timeline,
  .two-column {
    grid-template-columns: 1fr;
  }

  .video-grid > .video-card:first-child {
    grid-column: auto;
  }

  .referral-section,
  .contact-section,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-items: start;
  }

  .site-footer {
    padding-bottom: 104px;
  }

}

@media (max-width: 420px) {
  .button {
    width: 100%;
  }

  .owner-card {
    bottom: 16px;
    left: 14px;
    width: min(300px, calc(100% - 28px));
  }
}
