/* SolarPulse marketing site. Palette: daylight sky, slate ink, marigold sun, leaf green, PV-cell blue. */
:root {
  --sky: #eef4f7; --sky-2: #dfeaf0; --paper: #ffffff; --ink: #1b2a33; --ink-2: #3c4d57; --muted: #66767f; --line: #d6e1e7;
  --sun: #f2a900; --sun-soft: #fff4d1; --leaf: #2e8b57; --leaf-soft: #e3f3ea; --cell: #23577a; --cell-soft: #e1ecf4; --alarm: #c2410c;
  --r-lg: 22px; --r-md: 14px; --r-sm: 9px;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--cell); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(38px, 5.4vw, 68px); font-weight: 700; }
h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 650; }
h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: 20px; color: var(--ink-2); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font: 600 16px var(--body); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #ffb915; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #26404d; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 21px var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo svg { width: 32px; height: 32px; }
.top nav { display: flex; gap: 24px; margin-left: 12px; }
.top nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--ink); }
.top .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.top .right .signin { color: var(--ink); font-weight: 600; text-decoration: none; padding: 8px 12px; }
.menu-btn { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

/* hero */
.hero { background: linear-gradient(180deg, #f9fbfc 0%, var(--sky) 100%); padding: 56px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.hero h1 { max-width: 17ch; }
.hero .lead { max-width: 58ch; margin-top: 18px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .fine { font-size: 14px; color: var(--muted); margin-top: 12px; }
.stage { position: relative; margin-top: 34px; background: var(--paper); border-radius: var(--r-lg) var(--r-lg) 0 0; border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -10px 40px rgba(35,87,122,.07); }
.stage-head { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.stage-head .site { font-weight: 650; }
.stage-head .site span { color: var(--muted); font-weight: 400; }
.readout { display: flex; gap: 28px; margin-left: auto; flex-wrap: wrap; }
.readout div { min-width: 92px; }
.readout b { display: block; font: 650 24px var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.readout small { color: var(--muted); font-size: 13px; }
.scene { display: block; width: 100%; height: auto; }
.scrub { display: flex; align-items: center; gap: 16px; padding: 14px 26px 20px; border-top: 1px solid var(--line); }
.scrub button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.scrub input[type=range] { flex: 1; accent-color: var(--sun); height: 28px; }
.scrub .clock { font: 600 18px var(--display); font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.alert-card { position: absolute; right: 22px; top: 92px; width: min(330px, 80%); background: #fff; border: 1.5px solid var(--alarm); border-radius: var(--r-md); padding: 14px 16px; box-shadow: 0 16px 40px rgba(194,65,12,.15);
  opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .35s; pointer-events: none; font-size: 15px; }
.alert-card.show { opacity: 1; transform: none; }
.alert-card b { color: var(--alarm); display: block; margin-bottom: 4px; }
.alert-card .meta { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* sections */
section { padding: 96px 0; }
.sec-sky { background: var(--sky); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.kicker { color: var(--leaf); font-weight: 650; margin-bottom: 10px; display: block; }

.watch { padding: 34px 0; border-bottom: 1px solid var(--line); background: #fff; }
.watch .wrap { display: flex; flex-wrap: wrap; gap: 12px 34px; align-items: center; color: var(--ink-2); }
.watch strong { color: var(--ink); margin-right: 6px; }
.watch span { display: inline-flex; align-items: center; gap: 8px; }
.watch i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* job blocks */
.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 46px; border-top: 1.5px solid var(--ink); }
.job { padding: 30px 34px 34px 0; border-bottom: 1px solid var(--line); }
.job:nth-child(odd) { border-right: 1px solid var(--line); }
.job:nth-child(even) { padding-left: 34px; padding-right: 0; }
.job h3 { display: flex; gap: 12px; align-items: center; }
.job h3 .dot { width: 14px; height: 14px; border-radius: 4px; }
.job ul { margin: 14px 0 0; padding: 0; list-style: none; }
.job li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-2); }
.job li::before { content: ""; position: absolute; left: 0; top: 15px; width: 12px; height: 2px; background: var(--ink); }

/* product fragments */
.frag { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 24px 60px rgba(27,42,51,.08); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 10px 1fr auto; gap: 14px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.feed li:last-child { border-bottom: 0; }
.feed i { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; }
.feed time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.feed small { color: var(--muted); display: block; }

/* calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1.5px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; margin-top: 40px; background: #fff; }
.calc .in { padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.calc label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.calc label span { display: flex; justify-content: space-between; }
.calc label output { font: 650 18px var(--display); }
.calc input[type=range] { accent-color: var(--cell); }
.calc .out { background: var(--sun-soft); padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.calc .big { font: 700 clamp(38px, 4.5vw, 56px) var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc .note { color: var(--ink-2); font-size: 15px; }

/* steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 44px; counter-reset: s; }
.step { counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font: 650 18px var(--display); margin-bottom: 16px; }
.step p { color: var(--ink-2); }

/* pricing */
.price-box { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-top: 40px; box-shadow: 0 24px 60px rgba(27,42,51,.07); }
.price-box .l { padding: 40px; background: var(--ink); color: #fff; }
.price-box .l .amt { font: 700 clamp(48px, 6vw, 72px) var(--display); letter-spacing: -0.03em; margin: 10px 0 0; }
.price-box .l .per { color: #c3d0d7; }
.price-box .l .btn { margin-top: 26px; }
.price-box .r { padding: 40px; }
.price-box ul { list-style: none; padding: 0; margin: 0; columns: 1; }
.price-box li { padding: 8px 0 8px 30px; position: relative; }
.price-box li::before { content: ""; position: absolute; left: 0; top: 12px; width: 16px; height: 9px; border-left: 2.5px solid var(--leaf); border-bottom: 2.5px solid var(--leaf); transform: rotate(-45deg); }

/* faq */
.faq { margin-top: 36px; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font: 600 19px var(--body); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 28px; font-weight: 300; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 14px; }

/* forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea { font: 16px var(--body); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { border-color: var(--cell); outline: none; box-shadow: 0 0 0 3px var(--cell-soft); }
.msg { font-weight: 600; min-height: 24px; }
.msg.err { color: var(--alarm); } .msg.ok { color: var(--leaf); }

.cta-band { background: var(--sun); padding: 72px 0; }
.cta-band .wrap { display: flex; gap: 30px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

footer { background: var(--ink); color: #c3d0d7; padding: 56px 0 40px; font-size: 15px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
footer a { color: #fff; text-decoration: none; display: block; padding: 3px 0; }
footer h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
footer .copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid #2e434f; font-size: 13px; }

/* article (guide) */
.article { padding: 60px 0 90px; }
.article .wrap { max-width: 760px; }
.article h1 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 18px; }
.article h2 { font-size: 28px; margin: 42px 0 12px; }
.article p, .article li { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.article .formula { background: var(--sky); border-left: 4px solid var(--cell); padding: 16px 20px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 18px; margin: 14px 0 20px; }
.article table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 16px; }
.article th, .article td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }

/* auth pages */
.auth { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 1fr 1fr; }
.auth .side { background: var(--sky); padding: 64px 6vw; display: flex; flex-direction: column; justify-content: center; }
.auth .side ul { padding-left: 20px; color: var(--ink-2); }
.auth .side li { margin: 8px 0; }
.auth .main { padding: 64px 6vw; display: flex; flex-direction: column; justify-content: center; }
.auth .main .form { max-width: 520px; }

@media (max-width: 920px) {
  .split, .calc, .price-box, .auth { grid-template-columns: 1fr; }
  .jobs { grid-template-columns: 1fr; }
  .job, .job:nth-child(even) { padding: 26px 0; border-right: 0; }
  .steps { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .top nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 4vw; border-bottom: 1px solid var(--line); gap: 12px; }
  .top nav.open { display: flex; }
  .menu-btn { display: block; }
  .readout { margin-left: 0; gap: 18px; }
  .alert-card { position: static; margin: 0 16px 14px; width: auto; }
  section { padding: 70px 0; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .top .right .btn { display: none; }
  .scrub { padding: 12px 14px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* ---------- hero v2: living scene ---------- */
.hero { position: relative; background:
  radial-gradient(900px 520px at 78% 18%, #fff3cf 0%, rgba(255,243,207,0) 60%),
  linear-gradient(180deg, #fbfcfd 0%, var(--sky) 100%); padding-top: 40px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(35,87,122,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(35,87,122,.06) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(180deg, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); }
.hero .wrap { position: relative; }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); align-items: center; gap: 40px; min-height: min(640px, calc(100vh - 110px)); }
.hero h1 { font-size: clamp(40px, 5vw, 66px); max-width: 13ch; letter-spacing: -0.035em; }
.hero .lead { font-size: 19px; }
.live-pill { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 22px; box-shadow: 0 4px 14px rgba(27,42,51,.06); }
.live-pill i, .viz-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 0 rgba(46,139,87,.5); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(46,139,87,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(46,139,87,0); } }
.proof { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
.proof li { padding: 0 18px; border-left: 1px solid var(--line); }
.proof li:first-child { padding-left: 0; border-left: 0; }
.proof b { display: block; font: 650 22px var(--display); letter-spacing: -0.02em; }
.proof span { font-size: 14px; color: var(--muted); }

.viz { position: relative; aspect-ratio: 640 / 560; width: 100%; max-width: 640px; justify-self: end; }
.viz-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.viz-tag { position: absolute; left: 8%; top: 2%; z-index: 3; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: rgba(255,255,255,.8); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); }
.v-rays line { stroke: #f2a900; stroke-width: 3; stroke-linecap: round; opacity: .55; }
.v-rays { animation: spin 26s linear infinite; transform-origin: 0 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.vcard { position: absolute; z-index: 2; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(214,225,231,.9); border-radius: 16px; padding: 12px 16px; box-shadow: 0 18px 40px rgba(27,42,51,.12), 0 2px 6px rgba(27,42,51,.06);
  transition: transform .25s ease-out; will-change: transform; }
.vcard small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.vcard b { display: block; font: 700 24px var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vc-power { left: -3%; top: 12%; width: 190px; }
.vc-power .spark { width: 100%; height: 36px; display: block; margin-top: 4px; }
.vc-pr { left: -5%; bottom: 20%; display: flex; gap: 12px; align-items: center; }
.vc-pr .ring { width: 56px; height: 56px; }
.vc-pr #vRing { transition: stroke-dashoffset .5s, stroke .5s; }
.vc-saved { left: 38%; bottom: -1%; }
.vc-alert { right: -4%; bottom: 15%; width: 270px; display: flex; gap: 12px; align-items: flex-start; border-width: 1.5px;
  opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .35s, transform .35s, border-color .35s; }
.vc-alert.show { opacity: 1; transform: none; }
.vc-alert b { font: 650 15.5px var(--body); letter-spacing: 0; line-height: 1.3; }
.vc-alert small { margin-top: 3px; line-height: 1.4; }
.vc-alert .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; background: var(--alarm); box-shadow: 0 0 0 4px rgba(194,65,12,.15); }
.vc-alert.warn { border-color: var(--alarm); } .vc-alert.work { border-color: var(--cell); } .vc-alert.ok { border-color: var(--leaf); }
.vc-alert.work .dot { background: var(--cell); box-shadow: 0 0 0 4px rgba(35,87,122,.15); }
.vc-alert.ok .dot { background: var(--leaf); box-shadow: 0 0 0 4px rgba(46,139,87,.15); }
.day-intro { margin: 28px 0 0; color: var(--ink-2); font-weight: 600; }
.hero .stage { margin-top: 12px; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .viz { justify-self: center; max-width: 560px; margin-top: 10px; }
  .vc-power { left: 0; } .vc-pr { left: 0; } .vc-alert { right: 0; width: 230px; }
}
@media (max-width: 560px) {
  .vcard { padding: 8px 11px; border-radius: 12px; } .vcard b { font-size: 18px; }
  .vc-power { width: 140px; } .vc-alert { width: 190px; bottom: 12%; } .vc-saved { left: 34%; bottom: -4%; }
  .proof { grid-template-columns: 1fr; gap: 10px; } .proof li, .proof li:first-child { border-left: 0; padding: 0; } .vc-alert b { font-size: 13px; } .vc-alert small { display: none; }
  .vc-pr .ring { width: 40px; height: 40px; }
  .proof li { padding: 0 12px; } .proof b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .v-rays, .live-pill i, .viz-tag i { animation: none; } }
footer .legal-block { font-size: 13.5px; line-height: 1.7; color: #aebcc4; margin-top: 14px; }
footer .legal-block b { color: #fff; font-weight: 600; }
