/* Energy Revolution System landing page. Mobile first; one breakpoint at 768px. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: #20242A;
  font-family: 'Roboto', Arial, sans-serif;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* 1. Headline */
.headline {
  margin: 0 auto;
  padding: 24px 16px 0;
  max-width: 980px;
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: #8E1B2E;
  font-size: 26px;
  line-height: 35px;
  text-wrap: balance;
}
.headline > span { display: block; }
.headline > span + span { margin-top: 12px; }
.headline .accent { color: #8E1B2E; }

/* 2. Hero (full-bleed on phones) */
.hero {
  display: block;
  width: 100%;
  margin: 8px auto 0;
  aspect-ratio: 16 / 9;
}
.hero img { width: 100%; height: 100%; object-fit: cover; }

/* 2b. Caption */
.caption {
  margin: 8px 16px 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  color: #20242A;
}

/* 3 + 5. Buttons */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 56px);
  min-height: 54px;
  margin: 20px auto 0;
  padding: 8px 12px;
  background: #F7CE46;
  color: #20242A;
  border: 3px solid #D9AE1E;
  border-radius: 6px;
  box-shadow: 10px 10px 5px 0 rgba(104, 99, 99, 0.63);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.cta:hover, .cta:focus-visible { background: #F3C21F; }
.cta:focus-visible { outline: 3px solid #20242A; outline-offset: 3px; }
.cta--second { margin-top: 22px; }

/* 4. Body copy */
.body-copy {
  max-width: 788px;
  margin: 28px auto 0;
  padding: 0 28px;
  text-align: left;
  font-size: 22px;
  line-height: 25px;
}
.body-copy p { margin: 40px 0; }
.body-copy p:first-child { margin-top: 0; }
.body-copy p:last-child { margin-bottom: 0; }

/* 6. Footer */
.footer {
  margin-top: 40px;
  padding: 16px 16px 32px;
  background: #F1F2F4;
  color: #5A6069;
  font-size: 14px;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 30px;
  font-family: 'Yantramanav', Arial, sans-serif;
  font-weight: 700;
}
.footer-links a { color: #5A6069; text-decoration: none; padding: 8px 0; }
.footer-links a:hover { text-decoration: underline; }
.disclaimer { max-width: 840px; margin: 30px auto 0; line-height: 1.5; }
.copyright { margin: 30px 0 0; font-family: 'Yantramanav', Arial, sans-serif; font-weight: 700; }

/* Legal pages */
.legal { max-width: 788px; margin: 0 auto; padding: 48px 28px 0; }
.legal h1 { margin: 0; text-align: center; font-size: 32px; line-height: 1.25; font-weight: 700; }
.legal h2 { margin: 36px 0 12px; font-size: 22px; font-weight: 700; }
.legal p { margin: 0; font-size: 16px; line-height: 1.6; }
.legal .back { display: inline-block; margin-top: 36px; padding: 12px 0; font-size: 16px; }

@media (min-width: 768px) {
  .headline { padding-top: 32px; font-size: 48px; line-height: 60px; }
  /* Desktop hero 818x460; on short screens shrink by height so the button stays in view. */
  .hero { width: max(480px, min(818px, calc(100% - 32px), calc((100vh - 260px) * 16 / 9))); }
  .cta { width: min(584px, calc(100% - 56px)); min-height: 62px; font-size: 26px; }
  .body-copy { line-height: 24px; }
  .body-copy p { margin: 44px 0; }
}
@media (min-width: 844px) {
  .body-copy { padding: 0; }
}
/* Short, wide screens (a phone on its side): shrink the top so the button is on screen. */
@media (min-width: 600px) and (max-height: 500px) {
  .headline { padding-top: 12px; font-size: 22px; line-height: 28px; }
  .headline > span + span { margin-top: 4px; }
  .hero { width: max(240px, min(818px, calc((100vh - 240px) * 16 / 9))); }
  .cta { width: min(584px, calc(100% - 56px)); min-height: 54px; margin-top: 12px; font-size: 21px; }
}
