:root {
  color-scheme: light;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #fbfcff;
  color: #151928;
  line-height: 1.6;
  --ink: #151928;
  --muted: #5f6678;
  --line: rgba(21, 25, 40, 0.1);
  --surface: #ffffff;
  --soft: #f3f6fb;
  --green: #20a875;
  --blue: #3578ff;
  --yellow: #ffc44d;
  --coral: #ff6b57;
  --purple: #8468ff;
  --shadow: 0 22px 56px -34px rgba(21, 25, 40, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #fbfcff;
}

body.tidy-page {
  background:
    linear-gradient(180deg, rgba(255, 196, 77, 0.16) 0%, rgba(251, 252, 255, 0) 420px),
    #fbfcff;
}

body.energy-page {
  background:
    linear-gradient(180deg, rgba(53, 120, 255, 0.1) 0%, rgba(251, 252, 255, 0) 420px),
    #fbfcff;
}

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

img {
  max-width: 100%;
}

.site-header {
  padding: 24px clamp(18px, 5vw, 72px) 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--ink);
}

.brand-mark,
.octopus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.brand-chedders .brand-mark {
  background: linear-gradient(135deg, var(--yellow), var(--coral));
}

.brand-name {
  letter-spacing: 0;
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-weight: 650;
  font-size: 0.94rem;
}

.nav-links a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--ink);
}

.home-hero,
.app-hero,
.section {
  padding-left: clamp(18px, 5vw, 72px);
  padding-right: clamp(18px, 5vw, 72px);
}

.home-hero {
  min-height: calc(100svh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  padding-top: 52px;
  padding-bottom: 72px;
}

.home-copy,
.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.home-copy p:not(.eyebrow),
.hero-copy p:not(.eyebrow),
.section-heading p,
.app-card-copy p,
.feature-item p,
.screenshot-card figcaption,
.policy-card p,
.policy-card li,
.footer {
  color: var(--muted);
}

.home-copy p:not(.eyebrow),
.hero-copy p:not(.eyebrow) {
  max-width: 580px;
  font-size: clamp(1.05rem, 1.4vw, 1.24rem);
}

.home-showcase {
  display: grid;
  gap: 18px;
  align-content: center;
}

.app-tile {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.app-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(32, 168, 117, 0.35);
}

.app-tile-featured {
  min-height: 150px;
  border-color: rgba(255, 196, 77, 0.5);
}

.app-tile img,
.app-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: block;
}

.app-tile strong,
.app-tile small {
  display: block;
}

.app-tile strong {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.app-tile small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.96rem;
}

.section {
  padding-top: clamp(64px, 9vw, 108px);
  padding-bottom: clamp(64px, 9vw, 108px);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.app-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  box-shadow: var(--shadow);
}

.app-card-media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 168, 117, 0.16), rgba(255, 196, 77, 0.28)),
    #f4f8f4;
}

.app-card-media img {
  width: min(220px, 82%);
  max-height: 360px;
  object-fit: contain;
  border-radius: 26px;
  box-shadow: 0 24px 50px -28px rgba(21, 25, 40, 0.55);
}

.energy-media {
  background:
    linear-gradient(135deg, rgba(53, 120, 255, 0.14), rgba(132, 104, 255, 0.14)),
    #f3f6fb;
}

.energy-media img {
  width: 92%;
  max-height: 260px;
  border-radius: 16px;
}

.app-card-copy {
  min-width: 0;
}

.app-card-copy .octopus-icon {
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}

.app-card-icon {
  margin-bottom: 18px;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 800;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.78fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: center;
  padding-top: clamp(52px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 92px);
}

.hero-logo {
  display: block;
  width: min(360px, 100%);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 800;
}

.button {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 36px -24px rgba(21, 25, 40, 0.55);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.button.is-disabled {
  cursor: default;
  background: #2f3544;
}

.phone-stack {
  position: relative;
  min-height: 700px;
  overflow: hidden;
}

.phone-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(300px, 74vw);
  aspect-ratio: 1206 / 2622;
  border-radius: 38px;
  padding: 10px;
  background: #111827;
  box-shadow: 0 34px 70px -36px rgba(21, 25, 40, 0.7);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 30px;
  object-fit: cover;
}

.phone-front {
  transform: translate(-34%, -50%) rotate(4deg);
  z-index: 2;
}

.phone-back {
  transform: translate(-70%, -45%) rotate(-8deg) scale(0.92);
  opacity: 0.9;
}

.feature-band {
  background: #ffffff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.feature-item {
  border-top: 4px solid var(--yellow);
  padding-top: 18px;
}

.feature-item:nth-child(2) {
  border-color: var(--green);
}

.feature-item:nth-child(3) {
  border-color: var(--coral);
}

.feature-item:nth-child(4) {
  border-color: var(--blue);
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.screenshot-card {
  margin: 0;
}

.screenshot-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: zoom-in;
}

.screenshot-thumb img {
  display: block;
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 20px 42px -30px rgba(21, 25, 40, 0.65);
}

.screenshot-card figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(21, 25, 40, 0.74);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition: opacity 0.2s ease;
}

.lightbox.is-visible {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  width: min(92vw, 440px);
}

.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.lightbox-image {
  display: block;
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 30px;
  background: #111827;
}

.lightbox-caption {
  margin: 14px 0 0;
  color: #fff;
  text-align: center;
}

.download-band {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(21, 25, 40, 0.92), rgba(21, 25, 40, 0.86)),
    linear-gradient(135deg, var(--green), var(--yellow));
}

.download-band .section-heading p,
.download-band .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.download-band .button {
  background: #fff;
  color: var(--ink);
}

.download-band .button-secondary {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.policy-page {
  background: #f6f8fc;
}

.policy-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 82px) clamp(18px, 5vw, 44px) 96px;
}

.policy-header {
  margin-bottom: 36px;
  text-align: center;
}

.policy-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 38px);
  margin-bottom: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.policy-card ul {
  display: grid;
  gap: 8px;
  padding-left: 1.2rem;
}

.policy-card a,
.policy-shell a {
  color: var(--blue);
  font-weight: 700;
}

.footer {
  padding: 40px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-legal {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .app-grid,
  .app-card,
  .app-hero {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .phone-stack {
    min-height: 680px;
  }

  .phone-front {
    transform: translate(-26%, -50%) rotate(4deg);
  }

  .phone-back {
    transform: translate(-74%, -45%) rotate(-8deg) scale(0.9);
  }
}

@media (max-width: 820px) {
  .home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

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

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .app-card-media {
    min-height: 280px;
  }

  .feature-grid,
  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  .screenshot-card {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .phone-stack {
    min-height: 590px;
  }

  .phone-frame {
    width: min(250px, 72vw);
  }

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

@media (max-width: 560px) {
  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: space-between;
    gap: 12px 18px;
  }

  .app-tile {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 16px;
  }

  .app-tile img,
  .app-card-icon,
  .app-tile .octopus-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  .phone-stack {
    min-height: 580px;
  }

  .phone-front {
    transform: translate(-22%, -50%) rotate(4deg);
  }

  .phone-back {
    transform: translate(-72%, -45%) rotate(-8deg) scale(0.86);
  }

  .lightbox-close {
    right: 8px;
    top: 8px;
  }
}
