/* Maxify Energy — "solar instrument" direction.
   Near-black field, one warm light source (the sun), white glowing mark,
   mono for every measured thing. Orange is the only accent: use it for the
   sun and for the one action per screen, nothing else. */

:root {
  --bg: #0a0a0a;
  --bg-2: #111110;
  --bg-3: #171715;
  --line: rgba(242, 240, 235, 0.1);
  --line-2: rgba(242, 240, 235, 0.2);
  --ink: #f2f0eb;
  --ink-2: #a9a59c;
  --ink-3: #6f6b63;
  --sun: #ff7a1a;
  --sun-2: #ffb46b;
  --live: #7fe0a4;
  --radius: 18px;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --serif: "Instrument Serif", Georgia, serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
b { font-weight: 600; color: var(--ink); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--sun-2); }
.mono { font-family: var(--mono); letter-spacing: 0.04em; }
.micro { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.14em; }
.label { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.16em; }
.fine { font-size: 14px; color: var(--ink-3); max-width: 70ch; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-2); margin: 0 0 18px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, background .2s ease, box-shadow .3s ease;
}
.btn-sun { background: var(--sun); color: #140800; box-shadow: 0 0 0 0 rgba(255, 122, 26, 0); }
.btn-sun:hover { background: #ff8c3a; box-shadow: 0 0 40px -6px rgba(255, 122, 26, .7); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.wide { width: 100%; margin-top: 8px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(10, 10, 10, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 13px/1 var(--mono); letter-spacing: .22em; }
.brand b { color: var(--ink-2); font-weight: 500; }
.nav nav { display: flex; gap: 28px; }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none;
  font: 500 12px var(--mono); letter-spacing: .14em;
}
.lang:hover { color: var(--ink); border-color: var(--ink-2); }
.nav nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); transition: color .2s; }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav nav { display: none; } }

/* ---------- sections ---------- */
main > section { padding: clamp(80px, 12vw, 160px) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.03em; }
h1 { font-size: clamp(44px, 7.4vw, 104px); line-height: .96; max-width: 11ch; }
h2 { font-size: clamp(36px, 5.4vw, 72px); line-height: 1; max-width: 16ch; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); }
.sub { color: var(--ink-2); font-size: 18px; max-width: 58ch; margin: 22px 0 0; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  min-height: calc(100svh - 70px); padding-top: clamp(40px, 6vw, 80px) !important; padding-bottom: 40px !important;
}
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 46ch; margin: 28px 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.dial-wrap { margin: 0; position: relative; }
.dial-wrap::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 122, 26, .10), transparent 60%);
  pointer-events: none;
}
.dial { width: 100%; height: auto; overflow: visible; }
.dial figcaption, .dial-wrap figcaption { text-align: center; margin-top: 4px; }
.ring { fill: none; stroke: rgba(242, 240, 235, .14); stroke-width: 1.2; }
.ring.faint { stroke: rgba(242, 240, 235, .07); }
.tick { stroke: rgba(242, 240, 235, .28); stroke-width: 1.4; }
.tick.major { stroke: rgba(242, 240, 235, .85); stroke-width: 3; }
.dial-num { fill: var(--ink-3); font: 500 22px var(--mono); letter-spacing: .15em; text-anchor: middle; }
.horizon { stroke: rgba(242, 240, 235, .22); stroke-width: 1.4; }
.arc { fill: none; stroke: rgba(242, 240, 235, .18); stroke-width: 1.4; }
.arc.strong { stroke: rgba(242, 240, 235, .38); }
.arc-dot { fill: rgba(242, 240, 235, .45); }
.mpath {
  fill: none; stroke: url(#mGrad); stroke-width: 58; stroke-linecap: round; stroke-linejoin: round;
}
.dial-coord { fill: var(--ink-3); font: 400 19px var(--mono); letter-spacing: .2em; text-anchor: middle; }
.dial-word { fill: var(--ink); font: 600 30px var(--mono); letter-spacing: .32em; text-anchor: middle; }
#sun { transition: opacity .6s; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .dial-wrap { order: -1; max-width: 420px; width: 88%; margin: 0 auto; }
}

/* ---------- strip ---------- */
.strip { padding-top: 0 !important; padding-bottom: 0 !important; }
.strip ul {
  list-style: none; margin: 0; padding: 22px 0; display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .1em;
}
.strip li { display: flex; align-items: center; gap: 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot.live { background: var(--live); box-shadow: 0 0 10px var(--live); }
.dot.soon { background: var(--sun); box-shadow: 0 0 10px var(--sun); }

/* ---------- how / day path ---------- */
.daypath { position: relative; }
.daypath-arc { width: 100%; height: auto; overflow: visible; margin-bottom: -20px; }
.daypath-arc path { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 2 8; }
.daypath-arc circle { fill: var(--sun); filter: drop-shadow(0 0 14px var(--sun)); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.steps li { border-top: 1px solid var(--line-2); padding-top: 20px; }
.steps .hour { display: block; font-size: 13px; color: var(--sun-2); margin-bottom: 14px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
@media (max-width: 980px) {
  .daypath-arc { display: none; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 76px 1fr; column-gap: 16px; padding: 22px 0; }
  .steps .hour { grid-row: span 2; }
}

/* ---------- decide ---------- */
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.choice-card { position: relative; overflow: hidden; }
.choice-card h3 { font-size: 26px; margin: 22px 0 14px; }
.choice-card .big { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin: 0 0 16px; color: var(--ink); }
.choice-card p { color: var(--ink-2); }
.choice-card.recommended { border-color: rgba(255, 122, 26, .45); background: linear-gradient(180deg, rgba(255, 122, 26, .08), var(--bg-2) 50%); }
.tag { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); margin: 0; }
.recommended .tag { border-color: rgba(255, 122, 26, .5); color: var(--sun-2); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 26px; position: relative; color: var(--ink); font-size: 15.5px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--sun); border-bottom: 2px solid var(--sun); transform: rotate(-45deg); }
@media (max-width: 780px) { .choice { grid-template-columns: 1fr; } }

/* ---------- system grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px; min-height: 230px;
  transition: border-color .3s, transform .3s, background .3s;
  position: relative; overflow: hidden;
}
.tile:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--bg-3); }
.tile::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, .16), transparent 65%);
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.tile:hover::after { opacity: 1; }
.tile p { color: var(--ink-2); font-size: 15px; margin: 0; }
.tile h3 { font-size: 24px; }
.tile-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: auto; padding-bottom: 28px; }
.status { font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .14em; padding: 5px 9px; border-radius: 999px; }
.status.live { color: var(--live); background: rgba(127, 224, 164, .09); }
.status.soon { color: var(--sun-2); background: rgba(255, 122, 26, .1); }
.span-2 { grid-column: span 2; }
.span-4 { grid-column: 1 / -1; min-height: 0; }
.span-4 p { max-width: 70ch; }
.feature { min-height: 300px; }
.feature h3 { font-size: 34px; }
.spark { width: 100%; height: 70px; margin-top: 12px; }
.spark path { fill: none; stroke: var(--sun); stroke-width: 2; }
.spark path.fill { fill: rgba(255, 122, 26, .12); stroke: none; }
.dark-tile { background: linear-gradient(135deg, #141312, #0c0c0b); }
.more { font: 500 13px var(--mono); color: var(--sun-2); text-decoration: none; margin-top: 6px; }
.more:hover { text-decoration: underline; }
@media (max-width: 1040px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }

/* ---------- sizer ---------- */
.sizer-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.sizer-inputs label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--ink-2); margin: 6px 0 10px; }
.sizer-inputs output { color: var(--ink); font-size: 15px; }
.hint { font-size: 13px; color: var(--ink-3); margin: -14px 0 18px; }
input[type="range"] { width: 100%; accent-color: var(--sun); height: 32px; margin: 0 0 22px; cursor: pointer; }
.switch { justify-content: flex-start !important; gap: 12px !important; cursor: pointer; color: var(--ink) !important; margin: 4px 0 18px !important; }
.switch input { width: 20px; height: 20px; accent-color: var(--sun); }
.assume { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.assume summary { cursor: pointer; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); }
.assume ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-3); font-size: 14px; }
.sizer-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.readout { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.readout .label { display: block; margin-bottom: 10px; }
.readout b { font: 500 clamp(32px, 3.6vw, 46px)/1 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.readout .unit { margin-left: 6px; color: var(--ink-3); font: 400 14px var(--mono); }
.sizer-out .btn { grid-column: 1 / -1; }
@media (max-width: 820px) { .sizer-body { grid-template-columns: 1fr; } }

/* ---------- contractors ---------- */
.contractors { position: relative; }
.contractor-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.gets { display: grid; gap: 0; }
.get { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.get:last-child { border-bottom: 1px solid var(--line); }
.get .n { color: var(--sun-2); font-size: 13px; padding-top: 4px; }
.get h3 { margin-bottom: 6px; }
.get p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.vetting { position: sticky; top: 100px; }
.vet { list-style: none; margin: 0 0 18px; padding: 0; }
.vet-where { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--sun-2); margin: 18px 0 2px; }
.vet li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); font-size: 15.5px; }
.vet li .mono { font-size: 12px; color: var(--live); text-transform: uppercase; letter-spacing: .12em; }
@media (max-width: 900px) { .contractor-grid { grid-template-columns: 1fr; } .vetting { position: static; } }

/* ---------- forms ---------- */
.forms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lead h2 { font-size: clamp(30px, 3.4vw, 44px); }
.lead .sub { font-size: 16px; margin: 12px 0 26px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.lead input:not([type="checkbox"]) {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line-2);
  font: 400 16px var(--sans); transition: border-color .2s;
}
.lead input::placeholder { color: var(--ink-3); }
.lead input:focus { outline: none; border-color: var(--sun); }
.lead input[aria-invalid="true"] { border-color: #ff5a4f; }
.chips { border: 0; padding: 0; margin: 4px 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; padding: 0; }
.chips label { margin: 0; display: block; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); transition: all .2s; }
.chips input:checked + span { border-color: var(--sun); color: var(--ink); background: rgba(255, 122, 26, .12); }
.chips input:focus-visible + span { outline: 2px solid var(--sun); outline-offset: 2px; }
.form-msg { min-height: 1.4em; font-size: 14px; margin: 12px 0 0; color: var(--ink-2); }
.form-msg.ok { color: var(--live); }
.form-msg.err { color: #ff8a80; }
@media (max-width: 900px) { .forms { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; gap: 0; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 56px var(--gutter) 32px; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 48px; }
.foot-cols div { display: grid; gap: 8px; align-content: start; }
.foot-cols a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.foot-cols a:hover { color: var(--ink); }
.foot-bot { margin: 48px 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 420px) { .brand span { display: none; } }
