/* SolarPD marketing — clean white by default, dark tech when the system is dark. Accent green + warm sun yellow/orange.
   The hero and the scroll story always sit on a dark "sky" stage so the sun, rays and energy flow read clearly. */
:root {
  --bg:#f7f9f8; --surface:#fff; --surface-2:#eef3f0; --text:#0d1512; --muted:#4a5852; --border:#d5dfda;
  --green:#15803d; --green-2:#22c55e; --on-green:#fff; --sun:#f59e0b; --sun-2:#fbbf24; --orange:#ea580c;
  --grid:#6366f1; --load:#db2777;
  --stage:#06100d; --stage-2:#0c1d17; --stage-text:#effaf4; --stage-muted:#a9c2b6; --stage-line:#1f3a30;
  --radius:22px; --header:64px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#050b09; --surface:#0d1814; --surface-2:#12221c; --text:#eef7f2; --muted:#a3b8ae; --border:#1f3329;
    --green:#22c55e; --green-2:#4ade80; --on-green:#03140a; }
}
*,*::before,*::after { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:calc(var(--header) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } }
body { margin:0; background:var(--bg); color:var(--text); font:1rem/1.6 system-ui,-apple-system,'SF Pro Text','Segoe UI',Roboto,'Noto Sans',sans-serif; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
img { max-width:100%; height:auto; display:block; }
a { color:var(--green); }
h1,h2,h3 { letter-spacing:-.02em; }
.wrap { width:100%; max-width:1180px; margin:0 auto; padding:0 16px; }
@media (min-width:768px) { .wrap { padding:0 28px; } }
.skip { position:absolute; left:-999px; } .skip:focus { left:16px; top:8px; background:var(--surface); padding:8px; z-index:20; }
:focus-visible { outline:3px solid var(--sun-2); outline-offset:3px; border-radius:6px; }

/* Header */
.top { position:sticky; top:0; z-index:10; background:color-mix(in srgb, var(--bg) 96%, transparent); border-bottom:1px solid var(--border); }
.top__in { display:flex; align-items:center; gap:12px; min-height:var(--header); }
.brand { display:flex; align-items:center; gap:10px; font-weight:800; font-size:1.1rem; color:var(--text); text-decoration:none; min-height:44px; }
.top nav { margin-left:auto; }
.top nav ul { display:flex; gap:2px; list-style:none; margin:0; padding:0; }
.top nav a { display:inline-flex; align-items:center; min-height:44px; padding:0 12px; color:var(--muted); text-decoration:none; font-weight:600; border-radius:10px; }
.top nav a:hover { color:var(--text); background:var(--surface-2); }
.top nav a[aria-current='page'] { color:var(--text); background:var(--surface-2); }
.lang { min-height:44px; display:inline-flex; align-items:center; padding:0 12px; border:1px solid var(--border); border-radius:10px; text-decoration:none; color:var(--text); font-weight:600; }
.top .btn { min-height:44px; padding:0 16px; }
.menu { display:none; }
@media (max-width:900px) {
  .top nav { display:none; }
  .lang { margin-left:auto; }
  .menu { display:block; position:relative; }
  .menu summary { list-style:none; min-height:44px; min-width:44px; display:grid; place-items:center; border:1px solid var(--border); border-radius:10px; cursor:pointer; padding:0; margin:0; background:transparent; }
  .menu summary::-webkit-details-marker { display:none; }
  .menu[open] summary { background:var(--surface-2); }
  .menu ul { position:absolute; right:0; top:52px; min-width:220px; list-style:none; margin:0; padding:8px; background:var(--surface); border:1px solid var(--border); border-radius:16px; box-shadow:0 20px 50px rgb(0 0 0 / .18); }
  .menu a { display:flex; align-items:center; min-height:48px; padding:0 12px; color:var(--text); text-decoration:none; font-weight:600; border-radius:10px; }
  .menu a:hover { background:var(--surface-2); }
}
@media (max-width:420px) { .top .btn--open { display:none; } }
.menu details, details.menu { background:none; border:0; padding:0; margin:0; }

main { padding:40px 0 72px; }
main.home { padding:0 0 72px; }

/* Buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:52px; padding:0 22px; border-radius:14px; font-weight:700; text-decoration:none; border:1px solid var(--border); color:var(--text); background:var(--surface); transition:transform .15s, box-shadow .15s; }
.btn:hover { transform:translateY(-1px); }
.btn--primary { background:var(--green); color:var(--on-green); border-color:transparent; box-shadow:0 8px 24px color-mix(in srgb, var(--green) 35%, transparent); }
.btn--ghost { background:transparent; color:var(--stage-text); border-color:color-mix(in srgb, var(--stage-text) 30%, transparent); }

/* Hero (always dark stage) */
.hero { position:relative; isolation:isolate; overflow:hidden; color:var(--stage-text); background:
  radial-gradient(900px 500px at 85% 0%, rgb(251 191 36 / .22), transparent 60%),
  radial-gradient(700px 500px at 0% 100%, rgb(34 197 94 / .18), transparent 60%),
  linear-gradient(180deg, var(--stage) 0%, var(--stage-2) 100%); }
.hero::after { content:''; position:absolute; inset:0; z-index:-1; background-image:linear-gradient(rgb(255 255 255 / .04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .04) 1px, transparent 1px); background-size:44px 44px; mask-image:linear-gradient(180deg, #000 30%, transparent); -webkit-mask-image:linear-gradient(180deg, #000 30%, transparent); }
.hero__in { display:grid; gap:40px; align-items:center; padding-top:48px; padding-bottom:64px; }
@media (min-width:960px) { .hero__in { grid-template-columns:1.05fr .95fr; padding-top:88px; padding-bottom:104px; } }
.eyebrow { display:inline-flex; align-items:center; gap:8px; font-size:.85rem; font-weight:700; color:var(--sun-2); background:rgb(251 191 36 / .1); border:1px solid rgb(251 191 36 / .3); padding:6px 12px; border-radius:999px; margin:0 0 20px; }
.eyebrow i { width:8px; height:8px; border-radius:50%; background:var(--sun-2); box-shadow:0 0 12px var(--sun-2); }
.hero h1 { font-size:clamp(2.1rem, 6.2vw, 4rem); line-height:1.05; margin:0 0 20px; font-weight:850; }
.hero h1 em { font-style:normal; background:linear-gradient(90deg, var(--sun-2), var(--orange) 55%, #4ade80); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero .lead { color:var(--stage-muted); font-size:clamp(1.05rem, 2.2vw, 1.25rem); max-width:36em; margin:0; }
.cta { display:flex; gap:12px; flex-wrap:wrap; margin-top:28px; }
.stores { display:flex; gap:12px; flex-wrap:wrap; margin-top:16px; }
.store { display:inline-flex; align-items:center; gap:10px; min-height:56px; padding:8px 16px; border-radius:14px; background:#000; color:#fff; border:1px solid rgb(255 255 255 / .22); line-height:1.15; cursor:default; }
.store svg { width:26px; height:26px; flex:none; }
.store small { display:block; font-size:.72rem; opacity:.8; }
.store b { display:block; font-size:1.1rem; }
.note-sm { font-size:.85rem; color:var(--stage-muted); margin:10px 0 0; }
.chips { display:flex; flex-wrap:wrap; gap:8px; margin:28px 0 0; padding:0; list-style:none; }
.chips li { font-size:.85rem; font-weight:600; padding:6px 12px; border-radius:999px; background:rgb(255 255 255 / .06); border:1px solid rgb(255 255 255 / .12); color:var(--stage-text); }

/* Hero art: a CSS-3D panel array under a glowing sun */
.art { position:relative; aspect-ratio:1/0.9; max-width:560px; width:100%; margin:0 auto; perspective:1100px; }
.art__sun { position:absolute; top:4%; right:8%; width:28%; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle at 40% 40%, #fff7d6, var(--sun-2) 45%, var(--orange) 100%); box-shadow:0 0 60px 20px rgb(251 191 36 / .45), 0 0 160px 60px rgb(234 88 12 / .25); }
.art__rays { position:absolute; top:4%; right:8%; width:28%; aspect-ratio:1; }
.art__rays::before { content:''; position:absolute; inset:-70%; background:repeating-conic-gradient(from 0deg, rgb(251 191 36 / .22) 0 4deg, transparent 4deg 22deg); border-radius:50%; mask-image:radial-gradient(circle, #000 20%, transparent 70%); -webkit-mask-image:radial-gradient(circle, #000 20%, transparent 70%); animation:spin 40s linear infinite; will-change:transform; }
.pv { position:absolute; left:2%; right:6%; bottom:6%; height:62%; transform-style:preserve-3d; transform:rotateX(58deg) rotateZ(-32deg); }
.pv__grid { position:absolute; inset:0; display:grid; grid-template-columns:repeat(4, 1fr); grid-template-rows:repeat(3, 1fr); gap:6px; padding:6px; border-radius:10px; background:#9aa7a1; box-shadow:0 40px 60px rgb(0 0 0 / .55); overflow:hidden; }
.pv__cell { border-radius:4px; background:
  linear-gradient(90deg, transparent 32%, rgb(255 255 255 / .12) 32% 34%, transparent 34% 65%, rgb(255 255 255 / .12) 65% 67%, transparent 67%),
  linear-gradient(0deg, transparent 48%, rgb(255 255 255 / .1) 48% 52%, transparent 52%),
  linear-gradient(160deg, #1e3a8a, #0b1d4d 70%); }
.pv__grid::after { content:''; position:absolute; inset:-40%; background:linear-gradient(115deg, transparent 30%, rgb(255 244 200 / .28) 45%, transparent 60%); }
.pv__leg { position:absolute; width:6px; height:46px; background:#5b6b64; transform-origin:top; transform:rotateX(-90deg); }
.art__tag { position:absolute; font-size:.8rem; font-weight:700; padding:6px 10px; border-radius:10px; background:rgb(6 16 13 / .78); border:1px solid rgb(255 255 255 / .16); color:var(--stage-text); display:flex; align-items:center; gap:6px; }
.art__tag i { width:8px; height:8px; border-radius:50%; }
@keyframes spin { to { transform:rotate(360deg); } }
/* site.js marks off-screen sections .is-off: their looping animations stop so nothing repaints out of view */
.is-off *, .is-off *::before, .is-off *::after { animation-play-state:paused !important; }
@keyframes flow { to { stroke-dashoffset:-48; } }

/* Section headings */
.section { padding-top:72px; }
.kicker { font-size:.85rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--green); margin:0 0 8px; }
.section h2, .story h2 { font-size:clamp(1.8rem, 4.5vw, 2.8rem); line-height:1.1; margin:0 0 12px; font-weight:850; }

/* Scroll story */
.story { position:relative; background:linear-gradient(180deg, var(--stage-2), var(--stage)); color:var(--stage-text); padding:64px 0 32px; }
.story .kicker { color:#4ade80; }
.story__grid { display:grid; gap:0; }
.story__stage { position:sticky; top:var(--header); height:min(56vh, 520px); z-index:1; padding:8px 0; }
.scene { position:relative; height:100%; border-radius:var(--radius); overflow:hidden; border:1px solid var(--stage-line); background:#000; }
.scene svg { width:100%; height:100%; display:block; }
.story__steps { position:relative; z-index:2; padding-bottom:30vh; }
.step { min-height:72vh; display:flex; align-items:flex-end; padding:0 0 4vh; }
.step:first-child { margin-top:8vh; }
.step__card { background:rgb(8 20 16 / .96); border:1px solid var(--stage-line); border-radius:18px; padding:18px 20px; max-width:34em; transition:opacity .4s, transform .4s; }
.step__card b { display:inline-grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--sun-2); color:#1a1200; font-size:.9rem; margin-bottom:8px; }
.step__card h3 { margin:0 0 6px; font-size:1.3rem; }
.step__card p { margin:0; color:var(--stage-muted); }
.js .step__card { opacity:.35; transform:translateY(12px); }
/* Phones/tablets: the sticky stage holds the scene and the current step's text (copied by site.js);
   the step list stays in the page as scroll spacers and for screen readers. */
.story__now { display:none; }
@media (max-width:959px) {
  .js .story__stage { height:calc(100svh - var(--header)); display:flex; flex-direction:column; gap:10px; padding:8px 0 12px; }
  .js .story__stage .scene { flex:1; min-height:0; height:auto; }
  .js .story__now { display:block; min-height:9.5em; }
  .js .story__now .step__card { opacity:1; transform:none; max-width:none; border-color:color-mix(in srgb, var(--sun-2) 55%, transparent); }
  .js .story__steps .step__card { visibility:hidden; }
  .js .step { min-height:80vh; }
  .js .story__steps { margin-top:-100svh; padding-bottom:0; }
}
.js .step.is-active .step__card { opacity:1; transform:none; border-color:color-mix(in srgb, var(--sun-2) 55%, transparent); }
@media (min-width:960px) {
  .story__grid { grid-template-columns:minmax(0, .8fr) minmax(0, 1.2fr); gap:48px; }
  .story__steps { order:-1; padding-bottom:20vh; }
  .story__stage { height:calc(100vh - var(--header) - 48px); top:calc(var(--header) + 24px); padding:0; }
  .step { min-height:90vh; align-items:center; }
}
.hud { position:absolute; left:12px; right:12px; top:12px; display:flex; gap:8px; flex-wrap:wrap; pointer-events:none; }
.hud > div { background:rgb(6 16 13 / .8); border:1px solid rgb(255 255 255 / .14); border-radius:12px; padding:6px 10px; }
.hud small { display:block; font-size:.7rem; color:var(--stage-muted); }
.hud strong { font-size:1.05rem; font-variant-numeric:tabular-nums; }
.legend { position:absolute; left:12px; bottom:10px; right:12px; display:flex; gap:6px 12px; flex-wrap:wrap; font-size:.75rem; color:var(--stage-text); pointer-events:none; }
.legend span { display:flex; align-items:center; gap:5px; background:rgb(6 16 13 / .7); padding:2px 8px; border-radius:999px; }
.legend i { width:8px; height:8px; border-radius:50%; }
.story__caption { font-size:.85rem; color:var(--stage-muted); margin:12px 0 0; }
/* scene states, driven by data-step on .scene */
.scene .panel { opacity:0; transform:translateY(-14px); transition:opacity .5s, transform .5s; transition-delay:calc(var(--i) * 45ms); }
.scene[data-step] .panel { opacity:1; transform:none; }
.scene .rays, .scene .flow, .scene .devices, .scene .hud, .scene .legend { opacity:0; transition:opacity .6s; }
.scene[data-step='2'] .rays, .scene[data-step='3'] .rays, .scene[data-step='4'] .rays { opacity:1; }
.scene[data-step='3'] .flow, .scene[data-step='4'] .flow, .scene[data-step='3'] .devices, .scene[data-step='4'] .devices, .scene[data-step='3'] .legend, .scene[data-step='4'] .legend { opacity:1; }
.scene[data-step='2'] .hud, .scene[data-step='3'] .hud, .scene[data-step='4'] .hud { opacity:1; }
.scene .flow path { fill:none; stroke-width:4; stroke-linecap:round; stroke-dasharray:6 18; animation:flow 1s linear infinite; }
.scene:not([data-step='3']):not([data-step='4']) .flow path { animation-play-state:paused; }
.scene .flow .wire { stroke-dasharray:none; stroke-width:6; opacity:.25; animation:none; }
.no-js .scene .panel, .no-js .scene .rays, .no-js .scene .flow, .no-js .scene .devices, .no-js .scene .legend { opacity:1; transform:none; }

/* Bento */
.bento { display:grid; gap:14px; margin-top:28px; grid-template-columns:repeat(2, minmax(0, 1fr)); }
.tile { position:relative; min-width:0; overflow:hidden; border-radius:var(--radius); background:var(--surface); border:1px solid var(--border); padding:20px; display:flex; flex-direction:column; gap:6px; grid-column:span 2; }
.tile h3 { margin:0; font-size:1.2rem; line-height:1.25; }
.tile p { margin:0; color:var(--muted); }
.tile--half { grid-column:span 1; }
.tile__icon { width:44px; height:44px; border-radius:12px; display:grid; place-items:center; background:var(--surface-2); color:var(--green); margin-bottom:6px; }
.tile__icon svg { width:24px; height:24px; }
.tile__shot { margin:10px -20px -20px; border-top:1px solid var(--border); background:var(--surface-2); }
.tile__shot img { width:100%; height:auto; max-height:440px; object-fit:cover; object-position:50% 45%; }
.tile--dark { background:linear-gradient(160deg, var(--stage-2), var(--stage)); color:var(--stage-text); border-color:var(--stage-line); }
.tile--dark p { color:var(--stage-muted); }
.tile--sun { background:linear-gradient(150deg, #fff7e0, #ffe2b8); color:#2a1700; border-color:#f6cf8f; }
.tile--sun p { color:#5c3a0a; }
.tile--sun .tile__icon { background:rgb(255 255 255 / .6); color:var(--orange); }
@media (prefers-color-scheme: dark) { .tile--sun { background:linear-gradient(150deg, #2b1d05, #3a2006); color:#ffeccc; border-color:#5a3a0c; } .tile--sun p { color:#f1c98c; } .tile--sun .tile__icon { background:rgb(0 0 0 / .3); color:var(--sun-2); } }
.tile--phone { flex-direction:row; align-items:flex-end; gap:16px; }
.tile--phone .tile__txt { flex:1; align-self:center; }
.tile--phone img { width:42%; max-width:200px; height:auto; aspect-ratio:414/760; border-radius:22px 22px 0 0; margin:0 0 -20px; box-shadow:0 -10px 40px rgb(0 0 0 / .35); border:4px solid #111; border-bottom:0; }
@media (min-width:700px) {
  .bento { grid-template-columns:repeat(4, minmax(0, 1fr)); }
  .tile--big, .tile--phone { grid-column:span 4; }
  .tile--half { grid-column:span 2; }
}
@media (min-width:1080px) {
  .bento { grid-template-columns:repeat(12, minmax(0, 1fr)); }
  .tile, .tile--big, .tile--phone { grid-column:span 6; }
  .tile--half { grid-column:span 3; }
  .tile--big { grid-row:span 2; }
  .tile--big .tile__shot { flex:1; min-height:0; display:flex; align-items:center; background:#dcdfdc; }
  .tile--phone img { max-width:170px; }
}
.shot-note { font-size:.85rem; color:var(--muted); margin:14px 0 0; }
.js .reveal { opacity:0; transform:translateY(24px); transition:opacity .7s, transform .7s; }
.js .reveal.is-in { opacity:1; transform:none; }

/* Download band */
.band { margin-top:72px; border-radius:28px; padding:36px 24px; color:var(--stage-text); background:
  radial-gradient(600px 300px at 100% 0%, rgb(251 191 36 / .3), transparent 60%),
  radial-gradient(500px 300px at 0% 100%, rgb(34 197 94 / .25), transparent 60%), var(--stage); display:grid; gap:20px; align-items:center; }
.band h2 { margin:0 0 8px; font-size:clamp(1.6rem, 4vw, 2.4rem); line-height:1.15; }
.band p { margin:0; color:var(--stage-muted); }
@media (min-width:900px) { .band { grid-template-columns:1.2fr 1fr; padding:48px; } .band .stores { justify-content:flex-end; } }

@media (prefers-reduced-motion: reduce) {
  .art__rays::before, .scene .flow path { animation:none; }
  .js .reveal, .js .step__card, .scene .panel { transition:none; }
}

/* Inner pages (features, guide, pricing, faq, support, legal) */
.page-head { margin-bottom:8px; }
.page-head h1 { font-size:clamp(1.9rem, 5vw, 2.8rem); line-height:1.1; margin:0 0 12px; }
.lead { font-size:1.15rem; color:var(--muted); }
.grid { display:grid; gap:14px; grid-template-columns:repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-top:24px; }
.card { background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:20px; min-width:0; }
.card h3 { margin:0 0 8px; font-size:1.1rem; }
.card p { margin:0; color:var(--muted); }
.badge { display:inline-block; font-size:.75rem; font-weight:700; padding:2px 10px; border-radius:999px; background:color-mix(in srgb, var(--green) 14%, transparent); color:var(--green); margin-bottom:8px; }
.badge--later { background:#fff1d6; color:#8a4b00; }
@media (prefers-color-scheme: dark) { .badge--later { background:#33240a; color:#fbbf24; } }
.prose { max-width:760px; }
.prose h2 { margin-top:32px; }
.note { border-left:4px solid var(--sun); background:var(--surface); padding:12px 16px; border-radius:10px; }
details { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:12px 16px; margin:8px 0; }
summary { cursor:pointer; font-weight:700; min-height:32px; }
.price { font-size:1.6rem; font-weight:800; margin:8px 0; }
ol.steps { padding-left:20px; } ol.steps li { margin:8px 0; }

/* Footer */
.foot { border-top:1px solid var(--border); background:var(--surface); }
.foot__in { display:flex; flex-wrap:wrap; gap:16px; justify-content:space-between; align-items:center; padding:24px 16px; color:var(--muted); }
.foot ul { display:flex; flex-wrap:wrap; gap:4px 16px; list-style:none; margin:0; padding:0; }
.foot a { color:var(--muted); display:inline-flex; min-height:44px; align-items:center; }
