:root {
  --ink: #133842;
  --muted: #5b6c72;
  --teal: #007e79;
  --teal-dark: #00645f;
  --green: #4da52c;
  --green-dark: #2d7d1b;
  --sun: #e6a11c;
  --surface: #ffffff;
  --mint: #effaf7;
  --mint-strong: #def3ed;
  --line: #d7e4e2;
  --graphite: #596a73;
  --radius: 8px;
  --content: 1240px;
  --shadow: 0 12px 28px rgba(20, 63, 70, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

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

button {
  color: inherit;
}

svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 16px max(28px, calc((100% - var(--content)) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(19, 56, 66, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  min-width: max-content;
}

.brand-word {
  color: var(--ink);
  font-size: 31px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
}

.brand-word span {
  color: var(--green);
}

.brand-leaf {
  width: 19px;
  height: 19px;
  color: var(--green);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #244c56;
  font-size: 14px;
  font-weight: 650;
}

.site-nav > a:not(.nav-action) {
  position: relative;
}

.site-nav > a:not(.nav-action)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--green);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-nav > a:not(.nav-action):hover::after,
.site-nav > a:not(.nav-action):focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-action,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--teal);
  border-radius: 7px;
  background: var(--teal);
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-action {
  padding: 0 18px;
}

.primary-link {
  width: fit-content;
  padding: 0 20px;
}

.primary-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.nav-action:hover,
.nav-action:focus-visible,
.primary-link:hover,
.primary-link:focus-visible {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 72svh, 690px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(53%, 690px);
  margin-left: max(28px, calc((100% - var(--content)) / 2));
  padding: 68px 0 82px;
}

.hero h1 {
  margin: 0 0 26px;
  color: var(--teal-dark);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-statement {
  margin: 0;
  max-width: 650px;
  color: #0d2d37;
  font-size: 58px;
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-text {
  max-width: 535px;
  margin: 28px 0 32px;
  color: #365660;
  font-size: 19px;
  line-height: 1.55;
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 63%;
  margin: 0;
  mask-image: linear-gradient(to right, transparent 0%, #000000 35%, #000000 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 35%, #000000 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.section {
  padding: 104px max(28px, calc((100% - var(--content)) / 2));
}

.section-label,
.chart-source {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  color: #0f323c;
  font-size: 40px;
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: 0;
}

.principle {
  background: var(--mint);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.68fr);
  column-gap: 96px;
  align-items: end;
}

.section-intro > p:last-child {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 70px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: auto 54px minmax(0, 1fr);
  gap: 16px;
  padding: 0 32px;
}

.steps li:first-child {
  padding-left: 0;
}

.steps li + li {
  border-left: 1px solid #c9dfd9;
}

.step-number {
  color: var(--teal);
  font-size: 18px;
  font-weight: 800;
}

.step-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--teal);
}

.step-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 750;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.results {
  background: #ffffff;
}

.results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.results-lead {
  max-width: 345px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.charts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 54px;
}

.chart-panel {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.weekly-panel {
  background: #fbfffd;
}

.chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.chart-source {
  margin-bottom: 7px;
  color: var(--sun);
  font-size: 12px;
}

.chart-heading h3 {
  margin: 0;
  color: #173b45;
  font-size: 22px;
  font-weight: 760;
  line-height: 1.2;
}

.chart-readout {
  min-height: 25px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid #b7d4ce;
  border-radius: 7px;
  background: #ffffff;
  color: var(--teal);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--teal);
  color: #ffffff;
  transform: translateY(-1px);
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.chart-canvas {
  position: relative;
  height: 312px;
  margin-top: 17px;
}

.energy-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
  cursor: crosshair;
  touch-action: pan-y;
}

.energy-chart:focus-visible {
  outline: 3px solid rgba(0, 126, 121, 0.3);
  outline-offset: 5px;
}

.chart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
}

.chart-key {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #38555e;
  font-size: 13px;
  font-weight: 700;
}

.chart-key span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.line-key {
  display: inline-block;
  width: 26px;
  border-top: 3px solid;
}

.line-key.baseline {
  border-color: var(--graphite);
}

.line-key.optimized {
  border-color: var(--green);
}

.chart-state {
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.chart-state::before {
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.chart-state.is-paused::before {
  background: var(--sun);
}

.weekly-delta {
  color: var(--green-dark);
  font-size: 27px;
  font-weight: 800;
  white-space: nowrap;
}

.chart-caption,
.simulation-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.simulation-note {
  max-width: 750px;
  margin-top: 24px;
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 186px;
  max-width: 220px;
  padding: 11px 12px;
  border: 1px solid #c6ddd8;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 22px rgba(15, 50, 60, 0.12);
  color: #234851;
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip strong {
  margin-bottom: 5px;
}

.origin {
  background: var(--mint);
}

.origin-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.52fr);
  gap: 96px;
  align-items: end;
}

.origin-copy > p:last-child {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.name-equation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-top: 70px;
}

.name-part {
  min-width: 0;
}

.name-part svg {
  width: 47px;
  height: 47px;
  margin-bottom: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.name-part h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.name-part p {
  max-width: 245px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.name-part.eco {
  color: var(--green-dark);
}

.name-part.kilo {
  color: #d48900;
}

.name-part.aloha {
  color: var(--teal);
}

.name-part p {
  color: var(--muted);
}

.equation-plus {
  padding-top: 10px;
  color: var(--teal);
  font-size: 34px;
  font-weight: 350;
}

.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 76px max(28px, calc((100% - var(--content)) / 2));
  background: var(--teal-dark);
  color: #ffffff;
}

.closing .section-label {
  color: #b8eadb;
}

.closing h2 {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.primary-link.inverse {
  flex: 0 0 auto;
  border-color: #ffffff;
  background: #ffffff;
  color: var(--teal-dark);
}

.primary-link.inverse:hover,
.primary-link.inverse:focus-visible {
  border-color: #d5f2e8;
  background: #d5f2e8;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px max(28px, calc((100% - var(--content)) / 2));
  background: #063e3b;
  color: #d4ebe6;
  font-size: 13px;
}

.site-footer span:first-child {
  color: #ffffff;
  font-weight: 800;
}

.grid-line {
  stroke: #dce9e6;
  stroke-width: 1;
}

.axis-line {
  stroke: #9ab0b1;
  stroke-width: 1;
}

.axis-text {
  fill: #63787d;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
}

.axis-unit {
  fill: #537078;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.baseline-line {
  fill: none;
  stroke: var(--graphite);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.optimized-line {
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
  vector-effect: non-scaling-stroke;
}

.focus-line {
  stroke: #8caaa5;
  stroke-dasharray: 4 5;
  stroke-width: 1;
}

.focus-dot-baseline {
  fill: #ffffff;
  stroke: var(--graphite);
  stroke-width: 3;
}

.focus-dot-optimized {
  fill: #ffffff;
  stroke: var(--green);
  stroke-width: 3;
}

.annotation-line {
  stroke: var(--green);
  stroke-width: 2;
}

.annotation-text {
  fill: var(--green-dark);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 21px;
  font-weight: 800;
}

@media (max-width: 940px) {
  .site-nav {
    gap: 18px;
  }

  .hero-copy {
    width: 60%;
  }

  .hero-statement {
    font-size: 48px;
  }

  .section-intro,
  .origin-copy {
    column-gap: 48px;
  }

  .steps {
    gap: 0;
  }

  .steps li {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 0 20px;
  }

  .step-number {
    grid-column: 1 / -1;
    margin-bottom: 14px;
  }

  .chart-panel {
    padding: 22px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
    padding: 12px 20px;
  }

  .brand-word {
    font-size: 27px;
  }

  .brand-leaf {
    width: 17px;
    height: 17px;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 12px 22px rgba(20, 63, 70, 0.1);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a:not(.nav-action) {
    padding: 13px 0;
  }

  .site-nav > a:not(.nav-action)::after {
    display: none;
  }

  .nav-action {
    margin-top: 8px;
  }

  .hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    min-height: 0;
    overflow: visible;
  }

  .hero-media {
    position: relative;
    width: 100%;
    height: 255px;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .hero-media img {
    object-position: 67% center;
  }

  .hero-copy {
    width: auto;
    margin: 0;
    padding: 44px 24px 54px;
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: 24px;
  }

  .hero-statement {
    font-size: 41px;
    line-height: 1.08;
  }

  .hero-text {
    margin: 22px 0 28px;
    font-size: 17px;
  }

  .section {
    padding: 72px 24px;
  }

  .section h2 {
    font-size: 32px;
    line-height: 1.15;
  }

  .section-intro,
  .origin-copy {
    display: block;
  }

  .section-intro > p:last-child,
  .origin-copy > p:last-child {
    margin-top: 22px;
    font-size: 16px;
  }

  .steps {
    display: block;
    margin-top: 42px;
  }

  .steps li,
  .steps li:first-child {
    display: grid;
    grid-template-columns: 44px 46px minmax(0, 1fr);
    gap: 14px;
    padding: 24px 0;
  }

  .steps li + li {
    border-top: 1px solid #c9dfd9;
    border-left: 0;
  }

  .step-number {
    grid-column: auto;
    margin: 0;
    font-size: 16px;
  }

  .step-icon {
    width: 46px;
    height: 46px;
  }

  .step-icon svg {
    width: 24px;
    height: 24px;
  }

  .steps h3 {
    font-size: 19px;
  }

  .results-heading,
  .closing {
    display: block;
  }

  .results-lead {
    margin-top: 20px;
    font-size: 16px;
  }

  .charts-grid {
    display: block;
    margin-top: 38px;
  }

  .chart-panel + .chart-panel {
    margin-top: 20px;
  }

  .chart-panel {
    padding: 18px;
  }

  .chart-heading h3 {
    font-size: 20px;
  }

  .chart-canvas {
    height: 275px;
  }

  .chart-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-key {
    gap: 12px;
    font-size: 12px;
  }

  .weekly-delta {
    font-size: 25px;
  }

  .name-equation {
    display: block;
    margin-top: 48px;
  }

  .name-part {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 18px;
    padding: 22px 0;
  }

  .name-part + .name-part {
    border-top: 1px solid #c9dfd9;
  }

  .name-part svg {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    margin: 0;
  }

  .name-part h3 {
    margin: 0 0 5px;
    font-size: 21px;
  }

  .name-part p {
    font-size: 14px;
  }

  .equation-plus {
    display: none;
  }

  .closing {
    padding: 58px 24px;
  }

  .closing h2 {
    font-size: 32px;
  }

  .closing .primary-link {
    margin-top: 28px;
  }

  .site-footer {
    display: block;
    padding: 20px 24px;
  }

  .site-footer span {
    display: block;
  }

  .site-footer span + span {
    margin-top: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
