:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #153333;
  background: #f4f7f7;
  font-synthesis: none;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: #007460;
  text-underline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #1686c0;
  outline-offset: 4px;
}
.topbar {
  height: 86px;
  background: white;
  border-bottom: 1px solid #dce5e4;
  display: flex;
  align-items: center;
  padding: 0 max(28px, calc((100vw - 1240px) / 2));
  gap: 24px;
}
.brand {
  color: #153333;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1.8px;
  text-decoration: none;
}
.brand span {
  color: #008e72;
}
.product {
  font-size: 14px;
  border-left: 1px solid #d9e2df;
  padding-left: 24px;
  color: #617674;
}
nav {
  display: flex;
  gap: 26px;
  align-items: center;
  margin-left: auto;
  font-size: 14px;
}
nav a {
  text-decoration: none;
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 42px 28px 60px;
  min-height: calc(100vh - 164px);
}
h1 {
  font-size: 40px;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin: 10px 0 14px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
  margin: 0 0 12px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: #007460;
  margin: 0 0 15px;
}
.muted,
.small {
  color: #607875;
}
.small {
  font-size: 14px;
  line-height: 1.6;
}
.primary,
.secondary {
  border-radius: 9px;
  padding: 13px 21px;
  font-weight: 650;
  border: 1px solid transparent;
}
.primary {
  background: #007460;
  color: white;
}
.primary:hover {
  background: #005b4c;
}
.secondary {
  background: white;
  border-color: #cddcd8;
  color: #264e48;
}
.secondary:hover {
  background: #eaf3ef;
}
.text-button {
  padding: 7px 0;
  border: 0;
  background: none;
  color: #007460;
  font-size: 14px;
  font-weight: 650;
}
.welcome {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 90px;
  align-items: center;
  min-height: 650px;
}
.welcome h1 {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -2.8px;
}
.lead {
  font-size: 20px;
  line-height: 1.65;
  color: #5c7470;
  max-width: 460px;
}
.intro-steps {
  padding: 0;
  list-style: none;
  margin: 30px 0;
  font-size: 16px;
}
.intro-steps li {
  margin: 20px 0;
  line-height: 1.7;
}
.intro-steps span {
  color: #00896c;
  font-weight: 750;
  margin-right: 14px;
}
.guide-link {
  font-size: 15px;
}
.login-card {
  padding: 40px;
  border: 1px solid #dce6e2;
  border-radius: 20px;
  background: white;
  box-shadow: 0 18px 60px #14362c09;
}
.login-card h2 {
  font-size: 30px;
}
.login-card > p:not(.eyebrow) {
  line-height: 1.6;
  color: #607875;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
}
input,
select {
  border: 1px solid #c7d7d2;
  border-radius: 8px;
  padding: 12px;
  background: white;
  color: #20433d;
  max-width: 100%;
}
.login-card input {
  width: 100%;
}
.login-card .primary {
  width: 100%;
  margin-top: 25px;
}
.error {
  color: #a12a39 !important;
}
.notice {
  padding: 17px 22px;
  background: #e6f1fc;
  border-left: 4px solid #3279a6;
  border-radius: 6px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.notice.error {
  background: #fff0ed;
  border-color: #b2333f;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 35px;
}
.page-heading p {
  margin-bottom: 0;
}
.filters {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  border-bottom: 1px solid #dce5e4;
  padding-bottom: 28px;
  margin-bottom: 26px;
}
.filters label {
  margin-top: 0;
}
.filters select {
  min-width: 165px;
}
.meter-field {
  flex: 1;
}
.meter-field select {
  width: 100%;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin: 0 0 24px;
}
.metrics article {
  background: white;
  border: 1px solid #dce5e4;
  border-radius: 13px;
  padding: 24px;
}
.metrics article > span {
  font-size: 14px;
  font-weight: 550;
}
.metrics p {
  margin: 18px 0 12px;
  color: #183f36;
}
.metrics strong {
  font-size: 37px;
  font-weight: 650;
  letter-spacing: -1px;
}
.metrics small {
  font-size: 13px;
  line-height: 1.5;
  color: #6b807a;
}
.metrics article:nth-child(2) strong {
  color: #2682aa;
}
.metrics .freshness strong {
  font-size: 21px;
  letter-spacing: -0.3px;
}
.chart-card {
  border: 1px solid #dce5e4;
  background: white;
  border-radius: 15px;
  padding: 28px;
}
.chart-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.chart-heading h2 {
  font-size: 21px;
}
.chart-heading p {
  font-size: 14px;
}
.legend {
  display: flex;
  gap: 18px;
  font-size: 13px;
  white-space: nowrap;
}
.legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  margin-right: 6px;
}
.import-color {
  background: #007460;
}
.export-color {
  background: #399bcb;
}
.chart {
  width: 100%;
  min-height: 285px;
  overflow: auto;
}
.chart svg {
  width: 100%;
  height: auto;
  display: block;
  min-width: 500px;
}
.chart svg text {
  font-family: inherit;
  font-size: 12px;
  fill: #698078;
}
.chart-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-top: 1px solid #e7eeeb;
  padding-top: 18px;
  margin-top: 15px;
  font-size: 12px;
  color: #6b807a;
}
.chart-footer button {
  white-space: nowrap;
}
.empty-state {
  text-align: center;
  padding: 65px 30px;
  background: white;
  border: 1px solid #dce5e4;
  border-radius: 18px;
}
.empty-state p {
  max-width: 580px;
  line-height: 1.8;
  margin: 14px auto 25px;
  color: #607875;
}
.empty-state button {
  margin: 5px;
}
.empty-icon {
  font-size: 36px;
  color: #00816b;
  margin-bottom: 18px;
}
.readings {
  margin-top: 22px;
  padding: 18px 22px;
  background: white;
  border: 1px solid #dce5e4;
  border-radius: 12px;
}
.readings summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.table-scroll {
  max-height: 400px;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  margin-top: 20px;
}
th,
td {
  text-align: right;
  padding: 12px;
  border-bottom: 1px solid #e3ebe7;
}
th:first-child,
td:first-child {
  text-align: left;
}
th {
  color: #607875;
  font-weight: 600;
}
.connections {
  margin-top: 38px;
}
.connections h2 {
  font-size: 19px;
}
.connections ul {
  padding: 0;
  list-style: none;
}
.connections li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid #dce5e4;
  font-size: 14px;
}
.badge {
  background: #e7eeeb;
  border-radius: 6px;
  padding: 7px 10px;
  color: #48655c;
  font-size: 13px;
}
.loading {
  text-align: center;
  padding: 100px;
  color: #607875;
}
dialog {
  max-width: 600px;
  width: calc(100% - 32px);
  border: 1px solid #dce5e4;
  border-radius: 20px;
  padding: 34px;
  color: #153333;
}
dialog::backdrop {
  background: #0c3029aa;
}
dialog p {
  line-height: 1.7;
  color: #607875;
}
.close {
  float: right;
}
.connect-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 25px 0;
}
.connect-choice {
  background: #f4f8f6;
  border: 1px solid #cbded4;
  border-radius: 12px;
  padding: 22px;
  text-align: left;
  color: #174434;
}
.connect-choice:hover {
  background: #e5f1eb;
}
.connect-choice strong {
  display: block;
  font-size: 18px;
  margin-bottom: 12px;
}
.connect-choice span {
  font-size: 14px;
}
.connect-options + p {
  font-size: 14px;
}
footer {
  padding: 26px 28px;
  text-align: center;
  color: #6a8077;
  font-size: 12px;
  border-top: 1px solid #dce5e4;
}
@media (max-width: 900px) {
  .welcome {
    gap: 35px;
    min-height: 550px;
  }
  .welcome h1 {
    font-size: 43px;
  }
  .login-card {
    padding: 26px;
  }
  .metrics {
    gap: 12px;
  }
  .metrics article {
    padding: 20px;
  }
  .metrics strong {
    font-size: 30px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .meter-field {
    flex-basis: 100%;
  }
  .chart-heading {
    flex-wrap: wrap;
  }
}
@media (max-width: 620px) {
  .topbar {
    height: 72px;
    padding: 0 20px;
    gap: 12px;
  }
  .product {
    display: none;
  }
  nav {
    gap: 18px;
  }
  main {
    padding: 28px 18px 40px;
  }
  .welcome {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .welcome h1 {
    font-size: 44px;
  }
  .welcome-copy .intro-steps {
    display: none;
  }
  .lead {
    font-size: 18px;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
  }
  h1 {
    font-size: 33px;
  }
  .page-heading .primary {
    width: 100%;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metrics article:last-child {
    grid-column: 1/-1;
  }
  .metrics strong {
    font-size: 27px;
  }
  .metrics article {
    padding: 18px;
  }
  .metrics small {
    font-size: 12px;
  }
  .filters {
    gap: 12px;
  }
  .filters > div:not(.meter-field) {
    flex: 1;
  }
  .filters select {
    min-width: 0;
    width: 100%;
  }
  .filters > button {
    width: 100%;
  }
  .chart-card {
    padding: 20px 15px;
  }
  .chart-footer {
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }
  .legend {
    margin-bottom: 15px;
  }
  .connect-options {
    grid-template-columns: 1fr;
  }
  .connections li {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  .empty-state {
    padding: 38px 20px;
  }
  .empty-state button {
    width: 100%;
    margin: 5px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
.import-wait {
  background: #f0f7fc;
  border: 1px solid #c9dde9;
  border-radius: 15px;
  padding: 26px;
  margin-bottom: 28px;
}
.import-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}
.import-heading .eyebrow {
  color: #326680;
}
.import-wait h2 {
  font-size: 21px;
}
.import-wait > p {
  font-size: 15px;
  line-height: 1.7;
  color: #45636f;
  max-width: 850px;
}
.wait-estimate {
  flex-shrink: 0;
  background: #dcecf7;
  color: #255a77;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
}
.import-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
  padding: 22px 0;
  margin: 18px 0 0;
  border-top: 1px solid #d2e2eb;
}
.import-steps li {
  display: flex;
  gap: 12px;
}
.step-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #9cbed0;
  border-radius: 50%;
  color: #326680;
  flex-shrink: 0;
  font-size: 14px;
}
.import-steps strong {
  display: block;
  font-size: 14px;
  margin: 3px 0 8px;
}
.import-steps div > span {
  display: block;
  color: #58747f;
  font-size: 14px;
  line-height: 1.6;
}
.import-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #d2e2eb;
  padding-top: 12px;
}
.connect-timing {
  padding: 15px 18px;
  background: #f0f7fc;
  border: 1px solid #c9dde9;
  border-radius: 10px;
  margin: 15px 0;
}
.connect-timing strong {
  color: #255a77;
  font-size: 15px;
}
.connect-timing p {
  font-size: 14px;
  margin: 8px 0 0;
}
.connection-age {
  display: block;
  color: #607875;
  font-size: 13px;
  margin-top: 7px;
}
@media (max-width: 720px) {
  .import-heading,
  .import-footer {
    flex-direction: column;
  }
  .import-steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .import-wait {
    padding: 22px;
  }
  .import-footer button {
    width: 100%;
  }
}
/* Consumer landing page; dashboard styling stays scoped separately. */
.welcome { display: block; min-height: 0; }
.welcome-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 65px; align-items: center; padding: 20px 0 36px; }
.welcome h1 { font-size: clamp(38px, 4.7vw, 62px); line-height: 1.08; letter-spacing: -2.5px; margin: 20px 0; }
.welcome h1 em { font-style: normal; color: #007460; text-decoration: underline; text-decoration-color: #d4e781; text-decoration-thickness: 7px; text-underline-offset: 8px; }
.welcome .lead { font-size: 19px; line-height: 1.6; max-width: 550px; color: #375950; }
.hero-explainer { color: #587169; line-height: 1.7; max-width: 530px; }
.hero-cta { margin-top: 12px; display: inline-flex; gap: 30px; align-items: center; min-height: 52px; }
.hero-cta span { font-size: 22px; }
.hero-reassurance { font-size: 12px; color: #547064; margin: 12px 0 0; }
.energy-scene { background: #eef2e5; border-radius: 22px; margin-top: 28px; overflow: hidden; }
.energy-scene svg { width: 100%; display: block; }
.welcome .login-card { border-radius: 24px; padding: 34px; box-shadow: 0 18px 70px #173c2910; scroll-margin-top: 28px; }
.welcome .login-card input { min-height: 48px; }
.welcome .login-card .text-button { line-height: 1.6; }
.availability { display: flex; gap: 12px; align-items: baseline; padding: 17px 22px; border: 1px solid #d8e4dc; border-radius: 12px; background: #fff; color: #486558; }
.availability p { margin: 0; line-height: 1.6; font-size: 14px; }
.availability-dot { width: 8px; height: 8px; border-radius: 100%; background: #007460; flex-shrink: 0; }
.landing-section { padding: 64px 0; }
.landing-section h2 { font-size: clamp(27px, 3vw, 38px); letter-spacing: -1.1px; line-height: 1.2; margin: 12px 0 28px; }
.journey { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; gap: 35px; margin: 36px 0 0; }
.journey li { border-top: 1px solid #c8d7cf; padding-top: 24px; }
.journey-number { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; background: #e2ecb7; color: #245240; font-weight: 700; }
.journey h3, .contract-card h3 { font-size: 20px; letter-spacing: -.4px; margin: 20px 0 10px; }
.journey p, .contract-card p, .landing-faq p { line-height: 1.7; color: #587169; font-size: 15px; }
.journey a { font-size: 14px; line-height: 1.6; color: #006b55; }
.contract-section { background: #eaf0e8; padding: 38px; border-radius: 26px; }
.contract-heading { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 45px; }
.contract-heading > p { line-height: 1.7; color: #587169; }
.contract-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.contract-card { background: #fff; padding: 22px; border-radius: 15px; }
.contract-card svg { width: 100%; height: 75px; margin: 0 0 14px; }
.contract-card .contract-tag { font-size: 10px; letter-spacing: .8px; font-weight: 700; color: #47705a; }
.contract-card h3 { margin: 8px 0; font-size: 24px; }
.contract-card p { font-size: 14px; }
.contract-footnote { font-size: 12px; line-height: 1.7; color: #547064; margin: 24px 0 0; }
.contract-footnote a { color: #00634e; }
.landing-faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 70px; }
.landing-faq details { border-bottom: 1px solid #d3dfd8; padding: 19px 0; }
.landing-faq summary { cursor: pointer; font-weight: 650; line-height: 1.5; }
.landing-faq details p { margin-bottom: 0; }
.landing-footer { border-top: 1px solid #d3dfd8; padding-top: 30px; display: flex; align-items: center; gap: 30px; }
.landing-footer p { color: #587169; font-size: 14px; flex: 1; }
.landing-footer a { color: #006b55; font-size: 14px; }
.welcome button:focus-visible, .welcome a:focus-visible, .welcome summary:focus-visible { outline: 3px solid #007460; outline-offset: 4px; }
@media (max-width: 1000px) {
  .welcome-hero { gap: 30px; grid-template-columns: 1.2fr 1fr; }
  .welcome .login-card { padding: 25px; }
  .contract-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .welcome-hero, .journey, .contract-heading, .landing-faq { grid-template-columns: 1fr; gap: 24px; }
  .welcome-hero { padding-top: 0; }
  .welcome h1 { letter-spacing: -1.5px; }
  .welcome .lead { font-size: 18px; }
  .hero-cta { width: 100%; justify-content: space-between; }
  .landing-section { padding: 40px 0; }
  .contract-section { padding: 24px 18px; }
  .contract-heading { gap: 0; }
  .contract-heading h2 { margin-bottom: 10px; }
  .contract-card { padding: 17px; }
  .landing-footer { flex-wrap: wrap; gap: 15px; }
  .landing-footer p { flex-basis: 70%; }
}
@media (max-width: 400px) {
  .contract-grid { grid-template-columns: 1fr; }
  .contract-card svg { width: 130px; }
}
.installation-intro { max-width: 770px; color: #587169; font-size: 17px; line-height: 1.75; }
.simulation-status { display: inline-block; margin: 8px 0 26px; padding: 7px 12px; border-radius: 20px; background: #e6edc8; color: #37583f; font-size: 12px; font-weight: 650; }
.installation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.installation-card { padding: 27px; background: white; border: 1px solid #d8e4dc; border-radius: 18px; }
.installation-card svg { width: 94px; height: 76px; stroke: #007460; stroke-width: 3; fill: #eef3df; stroke-linecap: round; stroke-linejoin: round; }
.installation-card h3, .ems-panel h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.5px; margin: 18px 0 12px; }
.installation-card p, .ems-panel p { font-size: 15px; line-height: 1.75; color: #587169; }
.ems-panel { display: grid; grid-template-columns: 170px 1fr; gap: 34px; align-items: center; background: #123f34; border-radius: 20px; padding: 32px; margin-top: 24px; color: white; }
.ems-panel svg { width: 100%; stroke: #adcfaa; stroke-width: 2; fill: #1e5646; }
.ems-panel svg text { stroke: none; fill: #e1ed9c; font-size: 14px; font-weight: 700; }
.ems-panel p { color: #d4e4d9; }
.ems-panel .eyebrow { color: #dce993; font-size: 11px; }
.ems-panel .ems-example { border-top: 1px solid #406558; padding-top: 16px; margin-bottom: 0; font-size: 14px; }
.installation-section + .landing-faq { padding-top: 0; }
@media (max-width: 720px) {
  .installation-grid { grid-template-columns: 1fr; }
  .ems-panel { grid-template-columns: 1fr; padding: 25px; gap: 12px; }
  .ems-panel svg { width: 130px; }
}
.simulation-card { background: #edf3e7; border: 1px solid #d4e1cb; border-radius: 18px; padding: 28px; margin: 24px 0; }
.simulation-card > p { max-width: 850px; line-height: 1.65; }
.simulation-controls { display: flex; gap: 20px; align-items: end; margin: 22px 0; }
.simulation-controls label { display: block; margin-bottom: 8px; }
.simulation-controls select { min-height: 45px; }
.simulation-winner { background: #fff; border-radius: 12px; padding: 20px; margin: 20px 0; }
.simulation-winner h3 { font-size: 23px; margin: 10px 0; }
.simulation-table-wrap { overflow-x: auto; margin: 22px 0; }
.simulation-table { width: 100%; border-collapse: collapse; background: white; font-size: 13px; }
.simulation-table caption { text-align: left; padding: 10px 0; color: #476457; }
.simulation-table th, .simulation-table td { padding: 12px; text-align: left; border-bottom: 1px solid #dbe5d6; }
.simulation-table td:nth-child(n+3) { text-align: right; white-space: nowrap; }
.simulation-card details { padding: 15px 0; border-top: 1px solid #cfddc8; line-height: 1.7; font-size: 14px; }
.simulation-card summary { cursor: pointer; font-weight: 650; }
#simulation-reference { max-width: 100%; display: block; margin-top: 9px; }
.battery-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:20px 0; }
.battery-grid label { display:flex; flex-direction:column; gap:8px; }
.battery-grid input,.battery-grid select { min-width:0; width:100%; box-sizing:border-box; padding:10px; }
#installation-fields { border:0; padding:0; margin:0; min-width:0; }
.battery-grid [hidden] { display:none; }
#battery-results { border-top:2px solid #cfddc8; margin-top:25px; }
@media(max-width:720px) { .battery-grid { grid-template-columns:1fr; } }
@media (max-width:720px) { .simulation-controls { flex-direction: column; align-items: stretch; } .simulation-card { padding: 20px; } }
