/* Tesla Powerwall campaign. Scoped to the campaign and its sales page. */
.pw-campaign,
.powerwall-page {
  --pw-ink: #17202b;
  --pw-muted: #556171;
  --pw-blue: #245edb;
  --pw-line: #dce2e9;
  color: var(--pw-ink);
  background: #f5f7f9;
}
.pw-shell {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 36px;
  min-width: 0;
}
.pw-campaign { padding-top: 48px; }
.pw-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 52px;
  align-items: center;
}
.pw-copy { padding-block: 20px; min-width: 0; }
.pw-campaign .pw-eyebrow,
.powerwall-page .pw-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: #3b4b61;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .085em;
  line-height: 1.5;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.pw-brand-mark { width: 9px; height: 9px; background: var(--pw-blue); border-radius: 2px; flex: 0 0 9px; }
.pw-eyebrow-divider { color: #98a6b7; margin-inline: 3px; }
.pw-campaign .pw-headline {
  font-size: clamp(34px, 3.5vw, 48px);
  font-weight: 750;
  letter-spacing: -.055em;
  line-height: 1.07;
  color: var(--pw-ink);
  margin: 0 0 24px;
  background: none;
  -webkit-text-fill-color: currentColor;
}
.pw-headline span { display: block; }
.pw-campaign .pw-title {
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.3;
  color: var(--pw-ink);
  margin: 0 0 17px;
}
.pw-campaign .pw-lead,
.pw-campaign .pw-benefit-copy,
.pw-campaign .pw-service-copy { font-size: 15px; line-height: 1.75; color: var(--pw-muted); margin: 0 0 14px; max-width: 55ch; }
.pw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
.pw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  max-width: 100%;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  transition: background-color .18s ease, border-color .18s ease;
}
.pw-button-primary { background: var(--pw-blue); border-color: var(--pw-blue); color: #fff; }
.pw-button-primary:hover { background: #194dbb; border-color: #194dbb; color: #fff; }
.pw-button-secondary { background: transparent; border-color: #aab5c4; color: var(--pw-ink); }
.pw-button-secondary:hover { background: #e6ebf1; border-color: #748499; color: var(--pw-ink); }
.pw-button:focus-visible { outline: 3px solid #f59e0b; outline-offset: 4px; }
.pw-campaign .pw-price { margin: 13px 0 0; font-size: 12px; color: var(--pw-muted); }
.pw-price span { margin-inline: 6px; }
.pw-campaign .pw-export-note { margin: 24px 0 0; padding-left: 14px; border-left: 2px solid #98b8f4; font-size: 13px; line-height: 1.65; color: var(--pw-muted); }
.pw-export-note strong { color: var(--pw-ink); }
.pw-campaign .pw-conditions { margin: 12px 0 0; font-size: 11px; line-height: 1.6; color: var(--pw-muted); }
.pw-photo {
  position: relative;
  margin: 0;
  height: 610px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
}
.pw-image { width: 100%; height: 100%; display: block; object-fit: contain; }
.pw-photo-label { position: absolute; top: 25px; left: 25px; color: var(--pw-ink); display: grid; gap: 3px; }
.pw-photo-label span:first-child { font-size: 19px; font-weight: 600; letter-spacing: -.025em; }
.pw-photo-label span:last-child { font-size: 12px; }
.pw-media-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 18px 22px; color: var(--pw-muted); font-size: 10px; line-height: 1.5; }
.pw-media-caption a { color: var(--pw-muted); text-decoration: underline; text-underline-offset: 2px; }
.pw-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; padding: 26px 0 30px; border-top: 1px solid var(--pw-line); }
.pw-fact { display: flex; flex-direction: column; gap: 5px; }
.pw-fact + .pw-fact { border-left: 1px solid var(--pw-line); padding-left: 30px; }
.pw-fact strong { font-size: 19px; font-weight: 650; letter-spacing: -.025em; }
.pw-fact span { font-size: 12px; line-height: 1.5; color: var(--pw-muted); }
.powerwall-page .pw-section { padding-block: 76px; }
.powerwall-page .pw-section-muted { background: #eaf0f5; }
.powerwall-page .pw-section-dark { background: #142238; color: #fff; --pw-ink: #fff; --pw-muted: #c2cedd; --pw-line: #3b4b61; }
.powerwall-page .pw-section-heading { max-width: 24ch; font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; line-height: 1.12; letter-spacing: -.045em; color: var(--pw-ink); margin: 0 0 20px; }
.powerwall-page .pw-section-lead { max-width: 65ch; font-size: 16px; line-height: 1.75; color: var(--pw-muted); margin: 0 0 30px; }
.pw-grid { display: grid; gap: 24px; }
.pw-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.powerwall-page .pw-grid:not(.pw-grid-3) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pw-card { min-width: 0; padding: 30px; background: #fff; border: 1px solid var(--pw-line); border-radius: 12px; }
.powerwall-page .pw-card h3 { color: var(--pw-ink); font-size: 21px; letter-spacing: -.03em; margin: 0 0 14px; }
.powerwall-page .pw-card p,
.powerwall-page .pw-card li { font-size: 15px; line-height: 1.75; color: var(--pw-muted); }
.pw-card p:last-child { margin-bottom: 0; }
.powerwall-page .pw-section-dark .pw-card { background: #1c2e49; }
.powerwall-page .pw-section-dark .pw-eyebrow { color: #b6cff5; }
.powerwall-page .pw-section a:not(.pw-button) { color: #2359c5; }
.powerwall-page .pw-section-dark a:not(.pw-button) { color: #bed4ff; }
.powerwall-page .pw-section-dark .pw-button-secondary:hover { background: #304765; color: #fff; border-color: #8196b3; }
.powerwall-page .pw-section p { color: var(--pw-muted); }
.powerwall-page .pw-section h3 { color: var(--pw-ink); }
.pw-specs { display: grid; gap: 0; max-width: 780px; }
.pw-specs > div { display: grid; grid-template-columns: minmax(140px, .6fr) 1fr; gap: 24px; padding-block: 17px; border-bottom: 1px solid var(--pw-line); font-size: 15px; }
.pw-specs dt { font-weight: 650; color: var(--pw-ink); }
.pw-specs dd { margin: 0; color: var(--pw-muted); }
.pw-faq { max-width: 900px; }
.powerwall-page .pw-faq details { border: 0; border-bottom: 1px solid var(--pw-line); border-radius: 0; background: transparent; padding: 20px 0; }
.powerwall-page .pw-faq summary { color: var(--pw-ink); font-size: 16px; font-weight: 600; cursor: pointer; line-height: 1.6; padding-right: 22px; }
.powerwall-page .pw-faq details p { margin: 15px 0 0; max-width: 75ch; font-size: 15px; line-height: 1.75; }
.pw-source-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.pw-source-links a { color: #2359c5; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.powerwall-page .pw-section-dark .pw-source-links a { color: #bed4ff; }
@media (max-width: 1100px) {
  .pw-shell { padding-inline: 28px; }
  .pw-hero { gap: 30px; }
  .pw-campaign .pw-headline { font-size: clamp(36px, 4.4vw, 48px); }
  .pw-photo { height: 625px; }
  .pw-button { font-size: 13px; padding-inline: 16px; }
}
@media (max-width: 760px) {
  .pw-shell { padding-inline: 22px; }
  .pw-campaign { padding-top: 28px; }
  .pw-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pw-copy { display: contents; }
  .pw-campaign .pw-eyebrow { order: 0; font-size: 10px; gap: 7px; margin-bottom: 0; }
  .pw-campaign .pw-headline { order: 1; font-size: clamp(30px, 9vw, 44px); margin-bottom: 0; }
  .pw-campaign .pw-title { order: 2; font-size: 19px; margin-bottom: 0; }
  .pw-campaign .pw-lead, .pw-campaign .pw-benefit-copy, .pw-campaign .pw-service-copy { font-size: 14px; margin-bottom: 0; }
  .pw-campaign .pw-lead { order: 6; }
  .pw-campaign .pw-benefit-copy { order: 7; }
  .pw-campaign .pw-service-copy { order: 8; }
  .pw-actions { gap: 10px; margin-top: 23px; }
  .pw-campaign .pw-actions { order: 3; flex-direction: column; align-items: stretch; margin-top: 0; }
  .pw-campaign .pw-button { width: 100%; }
  .pw-campaign .pw-price { order: 4; margin-top: -12px; }
  .pw-campaign .pw-export-note { order: 9; margin-top: 0; }
  .pw-campaign .pw-conditions { order: 10; margin-top: -12px; }
  .pw-photo { order: 5; height: 320px; border-radius: 10px; }
  .pw-photo-label { top: 18px; left: 18px; }
  .pw-photo-label span:first-child { font-size: 17px; }
  .pw-facts { gap: 14px; margin-top: 26px; padding-block: 24px; }
  .pw-fact + .pw-fact { padding-left: 14px; }
  .pw-fact strong { font-size: 16px; }
  .pw-fact span { font-size: 10px; }
  .powerwall-page .pw-section { padding-block: 48px; }
  .pw-grid-3, .powerwall-page .pw-grid:not(.pw-grid-3) { grid-template-columns: minmax(0, 1fr); }
  .pw-card { padding: 25px; }
  .powerwall-page .pw-section-heading { font-size: 31px; }
  .powerwall-page .pw-section-lead { font-size: 15px; }
  .pw-specs > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 360px) {
  .pw-shell { padding-inline: 16px; }
  .pw-campaign .pw-headline { font-size: 30px; }
  .pw-facts { gap: 10px; }
  .pw-fact + .pw-fact { padding-left: 10px; }
  .pw-fact strong { font-size: 14px; }
}


/* Compact homepage promotion and native Powerwall dialog. */
.pw-home-section { padding-bottom: 32px; }
.pw-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border: 1px solid #2d405f;
  border-radius: 14px;
  background: linear-gradient(110deg, #14213a, #111a29);
  --pw-blue: #245edb;
}
.pw-teaser-copy { min-width: 0; }
.pw-teaser .pw-teaser-label { color: #9cc3ff; font-size: 11px; font-weight: 650; letter-spacing: .055em; text-transform: uppercase; margin: 0 0 7px; }
.pw-teaser h2 { font-size: 23px; letter-spacing: -.03em; line-height: 1.2; margin: 0 0 8px; color: #f5f8fc; }
.pw-teaser p { font-size: 13px; line-height: 1.6; color: #bac8db; margin-bottom: 0; }
.pw-teaser .pw-button { flex: 0 0 auto; }
.pw-popup {
  --pw-ink: #17202b;
  --pw-muted: #556171;
  --pw-blue: #245edb;
  color: var(--pw-ink);
  background: #fff;
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(880px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 24px 90px #0006;
}
.pw-popup::backdrop { background: rgb(5 11 20 / 72%); }
body.pw-popup-open { overflow: hidden; }
.pw-popup-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 12px 18px 12px 30px; background: #fff; border-bottom: 1px solid #eef1f5; }
.pw-popup-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; }
.pw-popup-close { display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #dce3ec; border-radius: 8px; background: #f3f6f9; color: #263446; font: 29px/1 system-ui, sans-serif; cursor: pointer; }
.pw-popup-close:hover { background: #e5ebf3; }
.pw-popup-close:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
.pw-popup-content { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 24px; padding: 28px 30px 30px; }
.pw-popup-copy { min-width: 0; }
.pw-popup .pw-popup-eyebrow { color: #2459bd; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .065em; margin: 0 0 13px; }
.pw-popup h2 { font-size: 31px; font-weight: 750; line-height: 1.1; letter-spacing: -.04em; color: var(--pw-ink); margin: 0 0 20px; }
.pw-popup p { font-size: 14px; line-height: 1.65; color: var(--pw-muted); margin: 0 0 13px; }
.pw-popup .pw-popup-service { font-size: 12px; }
.pw-popup .pw-actions { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 22px; }
.pw-popup .pw-button { font-size: 12px; padding-inline: 16px; }
.pw-popup .pw-popup-detail { color: #2459bd; font-size: 13px; font-weight: 650; }
.pw-popup .pw-popup-price { margin: 17px 0 0; font-size: 11px; line-height: 1.6; }
.pw-popup-photo { margin: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.pw-popup-photo img { display: block; width: 100%; height: auto; }
.pw-popup-photo figcaption { text-align: center; color: #68788c; font-size: 9px; margin-top: 4px; }
.pw-popup-photo a { color: #52667f; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 680px) {
  .pw-teaser { align-items: flex-start; flex-direction: column; gap: 17px; padding: 22px; }
  .pw-teaser h2 { font-size: 21px; }
  .pw-teaser .pw-button { width: 100%; }
  .pw-popup { width: calc(100vw - 28px); max-height: calc(100dvh - 28px); border-radius: 12px; }
  .pw-popup-bar { padding: 8px 12px 8px 20px; }
  .pw-popup-content { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px 20px 24px; }
  .pw-popup h2 { font-size: 29px; }
  .pw-popup .pw-actions { align-items: stretch; }
  .pw-popup .pw-button { font-size: 12px; }
  .pw-popup-photo img { width: 100%; height: 200px; object-fit: contain; }
}
