/* Archivo and IBM Plex Mono, self-hosted (SIL OFL 1.1, see /fonts/*-OFL.txt). Latin and Latin Extended subsets. */
/* latin-ext */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/plexmono-400-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/plexmono-400-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/plexmono-500-latin-ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/plexmono-500-latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #f2f3ef;
  --surface: #fafbf8;
  --ink: #141b18;
  --muted: #5c6661;
  --rule: #d6dad3;
  --grid: #e6e9e3;
  --sun: #d98a00;
  --sun-text: #996100;
  --ok: #2f8a4e;
  --bad: #c23a2e;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #0e1311;
    --surface: #151b18;
    --ink: #e6e9e3;
    --muted: #8f9993;
    --rule: #27302c;
    --grid: #1d2521;
    --sun: #f0ae2e;
    --sun-text: #f0ae2e;
    --ok: #5bc07f;
    --bad: #f0735f;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0e1311;
  --surface: #151b18;
  --ink: #e6e9e3;
  --muted: #8f9993;
  --rule: #27302c;
  --grid: #1d2521;
  --sun: #f0ae2e;
  --sun-text: #f0ae2e;
  --ok: #5bc07f;
  --bad: #f0735f;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 20px;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
  border-radius: 2px;
}

/* header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand .dot {
  fill: var(--sun);
}
.word {
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.lang {
  display: flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px;
}
.lang a {
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
  padding: 7px 11px;
}
.lang a[aria-current="page"] {
  background: var(--ink);
  color: var(--ground);
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
  padding-block: 40px 72px;
}
.eyebrow {
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
h1 {
  font-weight: 750;
  font-stretch: 112%;
  letter-spacing: -0.025em;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  margin: 0 0 22px;
  text-wrap: balance;
}
.lede {
  max-width: 34em;
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 30px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--ground);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 20px;
  border-radius: 6px;
}
.btn:hover {
  background: color-mix(in srgb, var(--ink) 85%, var(--sun));
}
.addr {
  font: 400 0.9rem var(--mono);
  color: var(--muted);
  user-select: all;
}

/* panels */
.panel {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 20px 20px 16px;
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.panel-title {
  font-weight: 650;
  font-stretch: 112%;
  font-size: 1rem;
}
.panel-sub {
  font: 400 0.78rem var(--mono);
  color: var(--muted);
}
.chart {
  position: relative;
  width: 100%;
  height: 220px;
  cursor: crosshair;
  touch-action: pan-y;
  overflow: hidden;
}
.chart.tall {
  height: 280px;
}
/* uPlot essentials (from uPlot.min.css, MIT) */
.uplot,
.uplot *,
.uplot *::before,
.uplot *::after {
  box-sizing: border-box;
}
.uplot {
  width: min-content;
  font-family: var(--mono);
  line-height: 1.5;
}
.u-wrap {
  position: relative;
  user-select: none;
}
.u-over,
.u-under {
  position: absolute;
}
.u-under {
  overflow: hidden;
}
.uplot canvas {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}
.u-axis {
  position: absolute;
}
.u-select {
  position: absolute;
  pointer-events: none;
  background: transparent;
}
.u-cursor-x,
.u-cursor-y {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  will-change: transform;
}
.u-hz .u-cursor-x {
  height: 100%;
  border-right: 1px dashed var(--muted);
}
.u-hz .u-cursor-y {
  display: none;
}
.u-cursor-pt {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  border: 0 solid;
  pointer-events: none;
  will-change: transform;
  background-clip: padding-box !important;
}
.u-axis.u-off,
.u-select.u-off,
.u-cursor-x.u-off,
.u-cursor-y.u-off,
.u-cursor-pt.u-off {
  display: none;
}
.x-tag {
  position: absolute;
  top: 100%;
  margin-top: 5px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--surface);
  font: 500 11px/1 var(--mono);
  padding: 4px 6px;
  border-radius: 2px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}
.readout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
}
.readout div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.readout dt {
  font: 500 0.68rem/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.readout dd {
  margin: 0;
  font-weight: 650;
  font-stretch: 108%;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.readout dd small {
  font: 400 0.72rem var(--mono);
  color: var(--muted);
  margin-left: 6px;
}
.note {
  font: 400 0.75rem var(--mono);
  color: var(--muted);
  margin: 12px 0 0;
  line-height: 1.45;
}

/* legend */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font: 400 0.8rem var(--mono);
  color: var(--muted);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.legend b {
  font-weight: 500;
  color: var(--ink);
}
.legend i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}
.legend i.sw-sun {
  background: var(--sun);
}
.legend i.sw-ink {
  background: var(--ink);
}
.legend .time {
  margin-left: auto;
}

/* inverters */
.inv-wrap {
  display: grid;
  gap: 24px;
}
.inv-wrap > div {
  min-width: 0;
}
.inv {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 6px;
}
.inv div {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 8px 9px;
  background: var(--ground);
  min-width: 0;
}
.inv .n {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 500 0.7rem var(--mono);
  color: var(--muted);
}
.inv .n::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}
.inv .p {
  display: block;
  font-weight: 650;
  font-stretch: 106%;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  white-space: nowrap;
}
.inv div.bad {
  border-color: color-mix(in srgb, var(--bad) 55%, var(--rule));
  background: color-mix(in srgb, var(--bad) 9%, var(--surface));
}
.inv div.bad .n::before {
  background: var(--bad);
}
.inv div.bad .p {
  color: var(--bad);
}
.inv-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 400 0.8rem var(--mono);
  color: var(--muted);
  margin-bottom: 10px;
}

/* process */
.section {
  padding-block: 64px;
  border-top: 1px solid var(--rule);
}
h2 {
  font-weight: 720;
  font-stretch: 112%;
  letter-spacing: -0.015em;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
  margin: 0 0 14px;
  text-wrap: balance;
}
.section-lede {
  color: var(--muted);
  max-width: 40em;
  margin: 0 0 32px;
}
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  font: 400 0.82rem var(--mono);
  color: var(--muted);
}
.flow li {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--surface);
}
.flow li.arrow {
  border: 0;
  background: none;
  padding: 0;
  color: var(--sun);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step-n {
  font: 500 0.75rem var(--mono);
  color: var(--sun-text);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 10px;
}
.steps h3 {
  font-weight: 680;
  font-stretch: 108%;
  font-size: 1.2rem;
  margin: 0 0 8px;
}
.steps p {
  margin: 0;
  color: var(--muted);
  max-width: 32em;
}
.pricing {
  margin: 44px 0 0;
  font-size: 1.05rem;
  max-width: 40em;
}

/* contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
}
.contact p {
  color: var(--muted);
  margin: 0;
  max-width: 32em;
}
.mail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}
.mail a {
  font-weight: 720;
  font-stretch: 105%;
  letter-spacing: -0.015em;
  font-size: clamp(1.15rem, 2.3vw, 1.6rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-decoration: none;
  background-image: linear-gradient(var(--sun), var(--sun));
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 4px;
}
.copy {
  font: 500 0.75rem var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
}
.copy:hover {
  border-color: var(--muted);
}

footer {
  border-top: 1px solid var(--rule);
  padding-block: 26px 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font: 400 0.8rem var(--mono);
  color: var(--muted);
}
footer a {
  text-underline-offset: 3px;
}

/* 404 */
.lost {
  padding-block: 96px 120px;
}
.lost .lede {
  margin-bottom: 30px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 24px 56px;
  }
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 360px) {
  .mail a {
    font-size: 1rem;
  }
  .word {
    font-size: 1.1rem;
  }
}
@media (max-width: 480px) {
  .panel {
    padding: 16px 14px 14px;
  }
  .readout {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 16px;
  }
  .section {
    padding-block: 48px;
  }
  .chart {
    height: 200px;
  }
  .chart.tall {
    height: 230px;
  }
  .legend .time {
    margin-left: 0;
  }
}
