/* ==========================================================================
   Barone Energia Solar — Link na Bio
   Paleta da marca: azul-marinho (base), amarelo solar (destaque), branco.
   Mobile-first.
   ========================================================================== */

:root {
  /* Marca */
  --navy-950: #051626;
  --navy-900: #07203a;
  --navy-800: #0b2c47;
  --navy-700: #0f3a5c;
  --navy-600: #164a73;
  --navy-500: #1f5e8f;
  --sun: #fdd501;
  --sun-600: #edbf00;
  --sun-soft: rgba(253, 213, 1, 0.16);
  --white: #ffffff;

  /* Céu diurno */
  --sky-top: #4f9ae0;
  --sky-mid: #3d89d3;
  --sky-low: #3279c3;
  --sky-bottom: #2d6eb6;

  /* Vidro transparente dos cards sobre o céu: deixa o fundo aparecer,
     com um reflexo de luz na diagonal e bordas que pegam brilho */
  --glass: rgba(255, 255, 255, 0.12);
  --glass-hover: rgba(255, 255, 255, 0.18);
  --ice:
    linear-gradient(125deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 38%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(rgba(20, 80, 155, 0.14), rgba(20, 80, 155, 0.14));
  --ice-hover:
    linear-gradient(125deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 38%, rgba(255, 255, 255, 0.02) 60%),
    linear-gradient(rgba(20, 80, 155, 0.12), rgba(20, 80, 155, 0.12));
  --ice-blur: blur(6px) saturate(140%);
  --ice-border: rgba(255, 255, 255, 0.42);
  --ice-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 1px 0 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 14px 32px -18px rgba(8, 45, 95, 0.5);
  --on-ice-shadow: 0 1px 2px rgba(8, 40, 85, 0.45), 0 0 18px rgba(8, 40, 85, 0.18);

  /* Texto */
  --text: #f4f7fb;
  --text-muted: rgba(255, 255, 255, 0.86);
  --text-faint: rgba(255, 255, 255, 0.7);
  --text-shadow: 0 1px 12px rgba(10, 50, 100, 0.35);

  /* Superfícies */
  --surface: var(--glass);
  --surface-hover: var(--glass-hover);
  --stroke: rgba(255, 255, 255, 0.18);
  --stroke-strong: rgba(255, 255, 255, 0.32);

  /* Tipografia */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Ritmo */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 14px 34px -20px rgba(6, 30, 60, 0.6);
  --shadow-sun: 0 14px 36px -12px rgba(253, 213, 1, 0.55);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --page-width: 34rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--sky-mid);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 10;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  background: var(--sun);
  color: var(--navy-900);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }

.text-sun { color: var(--sun); }

svg path, svg circle, svg rect, svg polyline, svg line {
  vector-effect: non-scaling-stroke;
}

/* ---------- Cenário (céu + sol) ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* Perto do sol o céu é mais claro e lavado; desce para um azul mais saturado */
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(214, 234, 252, 0.55) 0%, rgba(150, 200, 245, 0.2) 40%, transparent 70%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 35%, var(--sky-low) 70%, var(--sky-bottom) 100%);
}

/* Cirros: textura gerada por ruído, deslizando lentamente com o vento */
.sky__clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 2400px;
  height: 100%;
  background: url("../assets/img/clouds.svg") 0 -80px / 1200px auto repeat-x;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, rgba(0, 0, 0, 0.35) 80%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 45%, rgba(0, 0, 0, 0.35) 80%, transparent 100%);
  animation: clouds-drift 260s linear infinite;
  will-change: transform;
}
@keyframes clouds-drift { to { transform: translateX(-1200px); } }

/* Raios solares que giram muito devagar */
.sky__rays {
  position: absolute;
  top: -55vmax;
  left: 50%;
  width: 110vmax;
  height: 110vmax;
  translate: -50% 0;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 252, 230, 0.07) 0deg 4deg,
    transparent 4deg 18deg
  );
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 62%);
          mask-image: radial-gradient(circle, #000 0%, transparent 62%);
  animation: rays-spin 140s linear infinite;
}

/* Sol realista: núcleo branco estourado, bloom quente, halo atmosférico e reflexos de lente.
   Todas as camadas são centralizadas no mesmo ponto (topo da tela, como no céu aberto). */
.sun {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 0;
}

.sun > span {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  translate: -50% -50%;
  mix-blend-mode: screen;
}

/* Brilho amplo que tinge o céu */
.sun__bloom {
  width: 44rem;
  height: 44rem;
  background: radial-gradient(circle,
    rgba(255, 246, 210, 0.55) 0%,
    rgba(255, 230, 140, 0.28) 14%,
    rgba(253, 213, 1, 0.12) 30%,
    rgba(120, 170, 230, 0.06) 46%,
    transparent 66%);
  animation: sun-breathe 8s ease-in-out infinite;
}

/* Disco do sol: centro branco puro que se dissolve em luz quente */
.sun__core {
  width: 11rem;
  height: 11rem;
  background: radial-gradient(circle,
    #ffffff 0%,
    #ffffff 20%,
    rgba(255, 253, 235, 0.95) 28%,
    rgba(255, 244, 190, 0.6) 40%,
    rgba(255, 226, 110, 0.22) 56%,
    transparent 72%);
  filter: blur(1px);
  animation: sun-flicker 6s ease-in-out infinite;
}

/* Halo de 22° (anel de cristais de gelo), com leve dispersão de cor */
.sun__halo {
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle,
    transparent 60%,
    rgba(255, 255, 255, 0.04) 63%,
    rgba(255, 196, 120, 0.1) 65.5%,
    rgba(255, 240, 200, 0.09) 67%,
    rgba(150, 205, 255, 0.08) 69%,
    transparent 72%);
  animation: sun-breathe 8s ease-in-out infinite reverse;
}

/* Reflexos de lente: "fantasmas" ao longo da diagonal que passa pelo sol */
.sun__flare {
  width: var(--s);
  height: var(--s);
  margin-left: var(--x);
  margin-top: var(--y);
  background: radial-gradient(circle, var(--c) 0%, transparent 70%);
  opacity: 0.9;
  animation: flare-drift 10s ease-in-out infinite;
}
.sun__flare--1 { --s: 3.2rem; --x: -4.5rem; --y: 8rem;  --c: rgba(255, 230, 160, 0.22); }
.sun__flare--2 { --s: 1.4rem; --x: -7rem;   --y: 13rem; --c: rgba(170, 220, 255, 0.3); }
.sun__flare--3 { --s: 6rem;   --x: -10rem;  --y: 19rem; --c: rgba(150, 200, 255, 0.08); }

@keyframes rays-spin { to { rotate: 360deg; } }
@keyframes sun-breathe {
  0%, 100% { opacity: 0.88; scale: 1; }
  50% { opacity: 1; scale: 1.05; }
}
@keyframes sun-flicker {
  0%, 100% { opacity: 1; scale: 1; }
  40% { opacity: 0.94; scale: 0.97; }
  70% { opacity: 1; scale: 1.03; }
}
@keyframes flare-drift {
  0%, 100% { translate: -50% -50%; opacity: 0.75; }
  50% { translate: calc(-50% + 6px) calc(-50% - 4px); opacity: 1; }
}

/* ---------- Layout ---------- */
.page {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: max(var(--space-6), env(safe-area-inset-top)) var(--space-4) max(var(--space-6), env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding-top: 2.5rem;
}

.hero__brand {
  display: flex;
  justify-content: center;
  width: min(78%, 20rem);
  margin: 0 auto var(--space-3);
}
.hero__logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 1px rgba(6, 30, 60, 0.55)) drop-shadow(0 3px 10px rgba(6, 30, 60, 0.45)) drop-shadow(0 10px 30px rgba(6, 30, 60, 0.3));
}

/* Divisor entre a logo e o texto: linha que some nas pontas com um ponto de sol no centro */
.divider {
  position: relative;
  display: block;
  width: min(60%, 14rem);
  height: 1px;
  margin: calc(var(--space-2) * -1) 0 var(--space-1);
  background: linear-gradient(90deg, transparent, rgba(253, 213, 1, 0.7) 50%, transparent);
}
.divider i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  translate: -50% -50%;
  background: var(--sun);
  box-shadow: 0 0 10px 2px rgba(253, 213, 1, 0.75), 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.profile {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(5, 22, 38, 0.45);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.profile[hidden] { display: none; }
a.profile:hover { border-color: rgba(253, 213, 1, 0.45); color: var(--text); }

.profile__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy-600);
  box-shadow: 0 0 0 2px var(--sun);
}
.profile__avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile__avatar:has(img[src=""]) { display: none; }

.profile__badge svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--sun);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__tagline,
.hero__desc,
.section-head h2,
.closing h2,
.closing p,
.footer p { text-shadow: var(--text-shadow); }

.hero__tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 6.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__desc {
  max-width: 28rem;
  color: var(--text-muted);
  font-size: 0.975rem;
  white-space: pre-line;
  text-wrap: pretty;
}

.hero__cta { width: 100%; margin-top: var(--space-4); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  min-height: 4.25rem;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffe34d 0%, var(--sun) 45%, var(--sun-600) 100%);
  color: var(--navy-900);
  text-align: left;
  box-shadow: var(--shadow-sun);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), filter 0.25s;
}

/* Brilho que atravessa o botão */
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  translate: -120% 0;
  animation: shine 5.5s var(--ease-out) 2s infinite;
}

@keyframes shine {
  0%, 70% { translate: -120% 0; }
  100% { translate: 120% 0; }
}

.cta[hidden],
.hero__cta[hidden],
.links[hidden],
.closing[hidden] { display: none; }

.cta:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(253, 213, 1, 0.7); }
.cta:active { transform: translateY(0) scale(0.985); transition-duration: 0.1s; }
.cta[aria-busy="true"] { pointer-events: none; filter: saturate(0.7); }

.cta__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: var(--navy-800);
  color: var(--sun);
}
.cta__icon:empty { display: none; }
.cta__icon svg { width: 22px; height: 22px; }

.cta__text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.cta__text strong { font-family: var(--font-display); font-weight: 700; font-size: 1.075rem; letter-spacing: -0.01em; }
.cta__text small { font-size: 0.8rem; font-weight: 500; opacity: 0.75; }

.cta__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease-out);
}
.cta:hover .cta__arrow svg { transform: translateX(4px); }

.cta--ghost {
  justify-content: center;
  min-height: 3.5rem;
  width: auto;
  padding-inline: var(--space-5);
  text-align: center;
}
.cta--ghost .cta__text { flex: none; }

/* ---------- Condição de pagamento ---------- */
.pay {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-4);
  border: 1px solid var(--ice-border);
  border-radius: var(--radius);
  background: var(--ice);
  -webkit-backdrop-filter: var(--ice-blur);
          backdrop-filter: var(--ice-blur);
  box-shadow: var(--ice-shadow);
  text-shadow: var(--on-ice-shadow);
}

.pay__value {
  flex: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--sun);
  text-shadow: 0 1px 1px rgba(8, 40, 85, 0.55), 0 2px 12px rgba(8, 40, 85, 0.45);
}
.pay__value small { font-size: 0.55em; margin-left: 1px; }

.pay__text { display: flex; flex-direction: column; line-height: 1.35; }
.pay__text strong { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.pay__text span { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Cabeçalho de seção ---------- */
.section-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.section-head__line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--stroke-strong), transparent); }

/* ---------- Links ---------- */
.link-list { display: flex; flex-direction: column; gap: var(--space-4); }

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 4rem;
  padding: var(--space-3);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  border-color: var(--ice-border);
  background: var(--ice);
  -webkit-backdrop-filter: var(--ice-blur);
          backdrop-filter: var(--ice-blur);
  box-shadow: var(--ice-shadow);
  text-shadow: var(--on-ice-shadow);
  transition: transform 0.35s var(--ease-out), background 0.25s, border-color 0.25s;
}

/* Borda luminosa que acompanha o cursor */
.link-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%), rgba(253, 213, 1, 0.65), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.link-card:hover { transform: translateY(-2px); background: var(--ice-hover); }
.link-card:hover::before { opacity: 1; }
.link-card:active { transform: scale(0.985); transition-duration: 0.1s; }

.link-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--navy-600), var(--navy-800));
  border: 1px solid var(--stroke);
  color: var(--sun);
  transition: transform 0.35s var(--ease-out);
}
.link-card:hover .link-card__icon { transform: rotate(-6deg) scale(1.06); }
.link-card__icon svg { width: 22px; height: 22px; }

.link-card__body { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.link-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}
.link-card__meta {
  font-size: 0.8rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-card__arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text-faint);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease-out), stroke 0.3s;
}
.link-card:hover .link-card__arrow svg { stroke: var(--sun); transform: translate(2px, -2px); }

/* Ícones de linha */
.icon-line { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Skeleton */
.link-skeleton {
  height: 4.25rem;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--surface) 30%, rgba(255, 255, 255, 0.1) 50%, var(--surface) 70%);
  background-size: 300% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
}
@keyframes skeleton { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Estados (vazio / erro) */
.state {
  padding: var(--space-5) var(--space-4);
  border: 1px dashed var(--stroke-strong);
  border-radius: var(--radius);
  text-align: center;
}
.state[hidden] { display: none; }
.state__title { font-family: var(--font-display); font-weight: 600; }
.state__text { margin-top: var(--space-1); font-size: 0.9rem; color: var(--text-muted); }
.state__retry {
  margin-top: var(--space-4);
  min-height: 2.75rem;
  padding: 0 var(--space-5);
  border: 1px solid var(--sun);
  border-radius: 999px;
  background: transparent;
  color: var(--sun);
  font: 600 0.9rem var(--font-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.state__retry:hover { background: var(--sun); color: var(--navy-900); }
.state__retry[hidden] { display: none; }

/* ---------- Projeto em destaque ---------- */
.case {
  position: relative;
  overflow: hidden;
  padding: var(--space-5);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  border-color: var(--ice-border);
  background: var(--ice);
  -webkit-backdrop-filter: var(--ice-blur);
          backdrop-filter: var(--ice-blur);
  box-shadow: var(--ice-shadow);
  text-shadow: var(--on-ice-shadow);
}

/* Desenho de módulos fotovoltaicos ao fundo */
.case::before {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -3rem;
  width: 15rem;
  height: 11rem;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 34px);
  transform: perspective(400px) rotateX(48deg) rotateZ(-18deg);
  -webkit-mask-image: linear-gradient(135deg, transparent 10%, #000 70%);
          mask-image: linear-gradient(135deg, transparent 10%, #000 70%);
  pointer-events: none;
}


.case__eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--navy-900);
  text-shadow: none;
  box-shadow: 0 4px 14px -6px rgba(8, 40, 85, 0.5);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.case__eyebrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

.case__title {
  position: relative;
  margin-top: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.case__stats {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.case__stats > div { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.case__stats dt { font-size: 0.78rem; line-height: 1.3; color: var(--text-muted); }
.case__stats dd {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 8vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.case__stats div + div dd { color: var(--sun); text-shadow: 0 1px 1px rgba(8, 40, 85, 0.55), 0 2px 12px rgba(8, 40, 85, 0.45); }
.case__stats dd small { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); text-shadow: none; }

.case__note {
  position: relative;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--stroke);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.case__note strong { color: var(--text); font-weight: 600; }

/* ---------- Avaliações ---------- */
/* Carrossel: cards lado a lado, arrastando com o dedo (scroll-snap) */
.review-list {
  position: relative;
  display: flex;
  gap: var(--space-3);
  margin: 0 calc(var(--space-2) * -1);
  padding: var(--space-1) var(--space-2) var(--space-3);
  overflow-x: auto;
  overflow-y: hidden;              /* só rola na horizontal */
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;      /* dedo na horizontal = carrossel; na vertical = página */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--space-2);
  scrollbar-width: none;
}
.review-list::-webkit-scrollbar { display: none; }

.review {
  flex: 0 0 86%;
  display: flex;
  scroll-snap-align: center;
}

.review figure {
  flex: 1;
  margin: 0;
  padding: var(--space-4) var(--space-4) var(--space-5);
  border: 1px solid var(--ice-border);
  border-radius: var(--radius);
  /* Mesmo vidro dos outros cards, sem o desfoque ao vivo: desfocar o fundo a cada
     quadro do arraste pesa no celular, e atrás destes cards só há céu liso. */
  background: var(--ice), rgba(255, 255, 255, 0.04);
  box-shadow: var(--ice-shadow);
  text-shadow: var(--on-ice-shadow);
}

.review__head { display: flex; align-items: center; gap: var(--space-3); }

.review__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 12px -6px rgba(8, 40, 85, 0.45);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-shadow: none;
}

.review__who { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.review__who strong { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }

.review__stars {
  color: var(--sun);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 1px rgba(8, 40, 85, 0.55);
}

.review__text {
  position: relative;
  margin: var(--space-3) 0 0;
  padding-left: var(--space-3);
  border-left: 2px solid rgba(253, 213, 1, 0.7);
  font-size: 0.92rem;
  line-height: 1.55;
}

.reviews__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: var(--space-4) auto 0;
  padding: 8px 14px;
  border: 1px solid var(--ice-border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  text-shadow: var(--on-ice-shadow);
  transition: background-color 0.2s ease;
}
.reviews__more:hover,
.reviews__more:focus-visible { background: rgba(255, 255, 255, 0.12); }
.reviews__more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reviews { display: flex; flex-direction: column; }

.reviews__dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--space-2); }
.reviews__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}
.reviews__dot[aria-current="true"] { width: 22px; background: var(--sun); }

/* ---------- Chamada final ---------- */
.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-2) 0;
  text-align: center;
}
.closing h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.closing p { color: var(--text-muted); }
.closing p strong { color: var(--sun); font-weight: 600; }
.closing .cta { margin-top: var(--space-2); }

/* ---------- Rodapé ---------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding-top: var(--space-5);
  border-top: 1px solid var(--stroke);
  color: var(--text-faint);
  font-size: 0.8rem;
}
.footer img { width: 34px; height: 34px; opacity: 0.85; }

/* ---------- Placas solares no fim da página ---------- */
.solar-field {
  position: relative;
  width: 100%;
  height: clamp(292px, 46vw, 540px);
  overflow: hidden;
  pointer-events: none;
}
/* Camadas já rasterizadas (ver js/solar-field.js): só transform/opacity são animados,
   então a entrada roda na GPU sem redesenhar a cena. */
.sf-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  user-select: none;
}

/* Estado inicial (escondido) só quando o JS controla a animação */
.js .sf-layer {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: transform, opacity;
}
.js .sf-row {
  transform: translate3d(0, 46px, 0) scale(0.97);
  transform-origin: 50% 100%;
  transition-delay: calc(0.2s + var(--i) * 0.12s);
}
.js .sf-front { transition-delay: 0.1s; }

.solar-field.is-visible .sf-layer { opacity: 1; transform: none; }
.solar-field.is-done .sf-layer { will-change: auto; }

/* Reflexo do sol: a máscara (formato das placas) é estática; só a faixa se move. */
.sf-glint {
  overflow: hidden;
  -webkit-mask-size: cover;
          mask-size: cover;
  -webkit-mask-position: 50% 100%;
          mask-position: 50% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}
.sf-glint__beam {
  position: absolute;
  top: -10%;
  left: 0;
  width: 34%;
  height: 120%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translate3d(-110%, 0, 0) skewX(-14deg);
  will-change: transform;
}
.solar-field.is-visible .sf-glint__beam {
  animation: sf-glint 5.5s cubic-bezier(0.45, 0, 0.3, 1) 1.4s infinite;
}
/* Fora da tela, a animação pausa (economiza bateria). */
.solar-field.is-offscreen .sf-glint__beam { animation-play-state: paused; }

@keyframes sf-glint {
  0% { transform: translate3d(-110%, 0, 0) skewX(-14deg); }
  55%, 100% { transform: translate3d(330%, 0, 0) skewX(-14deg); }
}

@media (prefers-reduced-motion: reduce) {
  .sf-glint { display: none; }
}

.noscript { padding: var(--space-4); text-align: center; color: var(--text-muted); }

/* ---------- Animações de entrada ---------- */
/* Só esconde quando o JS está ativo: sem JS o conteúdo continua visível */
.js .reveal {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 0.8s var(--ease-out) calc(var(--d, 0) * 90ms),
    translate 0.8s var(--ease-out) calc(var(--d, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

.link-card.is-entering {
  animation: card-in 0.7s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- Telas maiores ---------- */
@media (min-width: 480px) {
  .page { padding-inline: var(--space-5); }
  .pay { padding: var(--space-5); }
  .case { padding: var(--space-6); }
}

@media (min-width: 900px) {
  :root { --page-width: 36rem; }
  .page { padding-top: var(--space-7); gap: var(--space-7); }
  .hero__brand { width: 22rem; }
  .sun { scale: 1.3; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; translate: none; }
  .cta::after { display: none; }
}
