/* Leo-Link — site styles
   Palette and type are set once here. Sky over ground: the hero is night sky,
   everything from the horizon down is ground. */

:root {
  --sky: #0B1020;
  --sky-2: #141B36;
  --ground: #0E1711;
  --ground-2: #142019;
  --panel: #182A20;
  --line: rgba(242, 241, 236, 0.10);
  --line-strong: rgba(242, 241, 236, 0.18);
  --green: #4EAE53;
  --green-light: #8FD394;
  --green-dim: rgba(78, 174, 83, 0.16);
  --chalk: #F2F1EC;
  --muted: #A3ABB8;
  --dusk: #E8B65A;

  --font-display: "Sora", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --measure: 62ch;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--green-light); text-underline-offset: 0.18em; }
a:hover { color: var(--chalk); }

:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
}

h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: min(1100px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-light);
  margin: 0 0 0.9rem;
}

.lede {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: var(--measure);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.4em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms, border-color 150ms, color 150ms, transform 150ms;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--green); color: var(--sky); }
.btn-primary:hover { background: var(--green-light); color: var(--sky); }

.btn-ghost { border-color: var(--line-strong); color: var(--chalk); background: transparent; }
.btn-ghost:hover { border-color: var(--chalk); color: var(--chalk); }

/* ---------- header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  padding-block: 1.1rem;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { color: var(--chalk); display: inline-flex; align-items: center; }
.brand svg { height: 34px; width: auto; }
.nav { display: flex; gap: clamp(0.9rem, 2.5vw, 1.75rem); }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--chalk); }

.legal-page .site-header { position: static; background: var(--sky); }

/* ---------- hero: the sky ---------- */

.sky {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 45% at 50% 100%, rgba(232, 182, 90, 0.22), transparent 70%),
    linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 100%);
  padding-top: clamp(7rem, 16vh, 10rem);
  isolation: isolate;
}
/* sparse stars, three layers offset so they don't tile visibly */
.sky::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(242,241,236,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 14%, rgba(242,241,236,.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 8%, rgba(242,241,236,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 41%, rgba(242,241,236,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 47%, rgba(242,241,236,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 33%, rgba(242,241,236,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 5% 62%, rgba(242,241,236,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 85% 66%, rgba(242,241,236,.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 58%, rgba(242,241,236,.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 74%, rgba(242,241,236,.25) 50%, transparent 51%);
}

.hero {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(6rem, 14vh, 9rem);
}
.hero h1 {
  font-size: clamp(2.35rem, 1.4rem + 4.6vw, 4.4rem);
  max-width: 14ch;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.hero h1 em { font-style: normal; color: var(--green-light); }
.hero .lede { margin-top: 1.4rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* one satellite, one pass, slowly */
.sat {
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--chalk);
  box-shadow: 0 0 8px 2px rgba(242,241,236,.6);
  offset-path: path("M -60 260 Q 720 -40 1500 240");
  offset-rotate: auto;
  animation: pass 56s linear infinite;
  z-index: 0;
  pointer-events: none;
}
.sat::before {
  content: "";
  position: absolute;
  right: 6px; top: 2px;
  width: 90px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242,241,236,.5));
}
@keyframes pass {
  from { offset-distance: 0%; }
  to   { offset-distance: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sat { animation: none; offset-distance: 38%; }
  html { scroll-behavior: auto; }
}

/* the horizon: a lit line, and rooftops cut out of the sky */
.horizon {
  position: relative;
  height: 96px;
  margin-top: -1px;
}
.horizon::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, var(--dusk) 20%, var(--dusk) 80%, transparent);
  opacity: 0.9;
}
.horizon::after {
  content: "";
  position: absolute;
  left: 10%; right: 10%; bottom: 0;
  height: 60px;
  background: radial-gradient(50% 100% at 50% 100%, rgba(232,182,90,.3), transparent 70%);
  pointer-events: none;
}
.horizon svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ---------- ground sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 2rem; }
.section-head .lede { margin-top: 0.75rem; }

/* who to contact: the boundary, as two panels either side of the line */
.boundary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.panel {
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem 1.8rem;
  border: 1px solid var(--line);
  background: var(--ground-2);
}
.panel-sky {
  background: linear-gradient(180deg, #121A33, #0F1527);
  border-color: rgba(163,171,184,.18);
}
.panel-ground {
  background: linear-gradient(180deg, var(--panel), var(--ground-2));
  border-color: rgba(78,174,83,.35);
}
.panel .eyebrow { margin-bottom: 0.5rem; }
.panel-sky .eyebrow { color: var(--muted); }
.panel h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel li {
  padding: 0.55rem 0 0.55rem 1.4rem;
  position: relative;
  border-top: 1px solid var(--line);
  color: var(--chalk);
}
.panel li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
.panel-ground li::before { background: var(--green); }
.panel-foot {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.panel-foot strong { color: var(--chalk); font-weight: 500; }

.contact-note {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
}
.contact-note p { max-width: 58ch; color: var(--muted); }
.contact-note strong { color: var(--chalk); font-weight: 500; }

/* how it works: a real sequence, so it is numbered */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
  list-style: none;
  margin: 0; padding: 0;
}
.steps li {
  counter-increment: step;
  padding: 1.5rem 1.6rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ground-2);
  position: relative;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--green-light);
  display: block;
  margin-bottom: 1.1rem;
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--muted); }

/* faq */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.4rem 1.1rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--green-light);
  transition: transform 150ms;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 1.25rem; max-width: var(--measure); }

/* partners */
.partners { display: grid; grid-template-columns: 1fr 2fr; gap: 1.25rem; }
.partner-block {
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ground-2);
}
.partner-block .eyebrow { margin-bottom: 1rem; }
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
}
.logo-row img { height: 34px; width: auto; opacity: 0.9; }
.logo-row img.tall { height: 52px; }
.partner-block p { color: var(--muted); font-size: 0.95rem; margin-top: 1rem; }

/* installers */
.installers { background: var(--ground-2); }
.installers-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  align-items: start;
}
.installers .lede { margin-top: 0.75rem; }
.checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.6rem;
  color: var(--muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.95rem;
  width: 10px; height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.form-note { font-size: 0.9rem; color: var(--muted); margin-top: 1.5rem; }

form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
label .req { color: var(--green-light); }
input, select, textarea {
  font: inherit;
  color: var(--chalk);
  background: var(--sky);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  width: 100%;
  min-height: 46px;
}
input::placeholder, textarea::placeholder { color: rgba(163,171,184,.55); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%238FD394' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}
textarea { min-height: 150px; resize: vertical; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.honeypot { position: absolute; left: -9999px; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
}
.site-footer img { height: 40px; width: auto; }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--chalk); }
.site-footer small { display: block; width: 100%; font-size: 0.8rem; opacity: 0.8; }

/* ---------- legal page ---------- */

.legal-page main { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; align-items: start; }
.legal-toc { position: sticky; top: 1.5rem; }
.legal-toc ol { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.legal-toc a { display: block; padding: 0.35rem 0; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.legal-toc a:hover { color: var(--chalk); }
.legal-body { max-width: 72ch; }
.legal-body h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); margin-bottom: 0.5rem; }
.legal-body .updated { color: var(--muted); font-family: var(--font-mono); font-size: 0.8rem; margin-bottom: 2.5rem; }
.legal-body section + section { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.legal-body h2 { margin-bottom: 1.25rem; }
.legal-body h3 { margin: 2rem 0 0.6rem; font-size: 1.1rem; }
.legal-body h4 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; margin: 1.4rem 0 0.3rem; }
.legal-body p, .legal-body li { color: var(--muted); }
.legal-body ul, .legal-body ol { padding-left: 1.3rem; margin: 0.5rem 0 1em; }
.legal-body li { margin-bottom: 0.35rem; }
.legal-body strong { color: var(--chalk); font-weight: 500; }
.legal-body dl { margin: 1rem 0; }
.legal-body dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-light); margin-top: 0.8rem; }
.legal-body dd { margin: 0.2rem 0 0; color: var(--muted); }

/* thanks page */
.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.thanks h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .partners, .installers-grid { grid-template-columns: 1fr; }
  .installers-grid { gap: 2rem; }
  .legal-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .legal-toc { position: static; }
}

@media (max-width: 680px) {
  .boundary, .steps { grid-template-columns: 1fr; }
  form { grid-template-columns: 1fr; }
  .field.half { grid-column: auto; }
  .nav a.hide-sm { display: none; }
  .brand svg { height: 30px; }
  .horizon { height: 64px; }
  .sky { padding-top: 6.5rem; }
}
