/* ============================================================
   Solarithm — home page (dark, photographic, horizontal slides)
   Used only by index.html, together with shell.css + home.js.
   ============================================================ */

.home {
  --night: #0A1322;
  --night-2: #101C30;
  --night-3: #16243B;
  --line: rgba(255, 255, 255, .12);
  --text: #F3F6FA;
  --text-soft: #A8B6C9;
  --sun: #F5A524;
  --sun-soft: #FFD58A;
  --leaf: #3FD08B;
  background: var(--night);
  color: var(--text);
}
.home main { display: block; }
.home h1, .home h2, .home h3 { color: #fff; }
.home *, .home *::before, .home *::after { box-sizing: border-box; }
.home a { color: inherit; }

/* ---------- header on the dark home page ---------- */
.home .shell-header {
  background: color-mix(in srgb, var(--night) 90%, transparent);
  border-bottom-color: var(--line);
}
.home .shell-logo span, .home .shell-nav-link, .home .shell-nav-trigger { color: var(--text); }
.home .shell-nav-link:hover, .home .shell-nav-trigger:hover,
.home .shell-nav-item.open .shell-nav-trigger { background: rgba(255,255,255,.08); color: #fff; }
.home .shell-logo svg line { stroke: #FFFFFF; }
.home .shell-menu-btn { border-color: var(--line); }
.home .shell-menu-btn svg path { stroke: #fff; }
.home .shell-header .shell-cta { background: var(--sun); color: #1A1204; }
.home .shell-header .shell-cta:hover { background: var(--sun-soft); }

/* ---------- shared ---------- */
.h-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.h-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sun);
  margin: 0 0 14px;
}
.h-title {
  font-family: var(--display);
  font-variation-settings: "wdth" 120, "wght" 700;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  color: var(--text);
}
.h-title em { font-style: normal; color: var(--sun); }
.h-lede { color: var(--text-soft); font-size: 18px; max-width: 58ch; margin: 0; }
.h-section { padding: 110px 0; }
.btn-sun, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display);
  font-variation-settings: "wdth" 110, "wght" 600;
  font-size: 15.5px;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 24px;
  transition: background .2s, transform .2s, border-color .2s;
}
.btn-sun { background: var(--sun); color: #1A1204 !important; }
.btn-sun:hover { background: var(--sun-soft); transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.3); color: var(--text) !important; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-sun:focus-visible, .btn-ghost:focus-visible { outline: 2px solid var(--sun-soft); outline-offset: 3px; }

/* ---------- 1. hero ---------- */
.h-hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.h-hero-bg { position: absolute; inset: 0; z-index: -2; }
.h-hero-bg img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 40%; display: block; }
.h-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,19,34,.92) 0%, rgba(10,19,34,.72) 42%, rgba(10,19,34,.25) 100%),
    linear-gradient(0deg, var(--night) 0%, rgba(10,19,34,0) 30%);
}
.h-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 80px;
}
.h-hero h1 {
  font-family: var(--display);
  font-variation-settings: "wdth" 120, "wght" 700;
  font-size: clamp(40px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.03em;
  margin: 0 0 22px;
}
.h-hero h1 em { font-style: normal; color: var(--sun); }
.h-hero h1, .h-hero .h-lede { text-shadow: 0 2px 18px rgba(10,19,34,.55); }
.h-hero .h-lede { margin-bottom: 30px; }
.h-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* savings check card */
.h-check {
  background: rgba(16, 28, 48, .72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.h-check h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 110, "wght" 600;
  font-size: 18px; margin: 0 0 4px; color: var(--text);
}
.h-check .sub { color: var(--text-soft); font-size: 14px; margin: 0 0 18px; }
.h-check label { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.h-check label output { font-family: var(--display); font-variation-settings: "wdth" 110, "wght" 600; font-size: 26px; letter-spacing: 0; text-transform: none; color: #fff; }
.h-check input[type=range] { width: 100%; margin: 12px 0 20px; accent-color: var(--sun); height: 28px; }
.h-check-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.h-check-out > div { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.h-check-out .k { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-soft); }
.h-check-out .v { font-family: var(--display); font-variation-settings: "wdth" 110, "wght" 600; font-size: 22px; color: #fff; margin-top: 3px; font-variant-numeric: tabular-nums; }
.h-check-out .v.save { color: var(--leaf); }
.h-check .btn-sun { width: 100%; justify-content: center; }
.h-check .fine { font-size: 12px; color: var(--text-soft); margin: 12px 0 0; line-height: 1.45; }

/* ---------- 2. trust strip ---------- */
.h-trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--night-2); }
.h-trust ul { list-style: none; margin: 0 auto; padding: 22px 24px; max-width: 1200px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.h-trust li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-soft); line-height: 1.4; }
.h-trust li strong { display: block; color: var(--text); font-family: var(--display); font-variation-settings: "wdth" 110, "wght" 600; font-size: 15px; }
.h-trust svg { flex: 0 0 auto; width: 26px; height: 26px; color: var(--sun); margin-top: 2px; }

/* ---------- 3. horizontal slides ---------- */
.h-story { position: relative; background: var(--night); }
.h-story-head { padding: 100px 0 36px; }
.h-story-pin { position: relative; overflow: hidden; }
.h-track { display: flex; gap: 0; will-change: transform; }
.h-slide {
  position: relative;
  flex: 0 0 auto;
  width: 100vw;
  height: calc(100svh - var(--header-h));
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
}
.h-slide-img { position: absolute; inset: 0 -8%; z-index: -2; }
.h-slide-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-slide::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(8,14,26,.94) 0%, rgba(8,14,26,.55) 45%, rgba(8,14,26,.12) 100%);
}
.h-slide-body { padding: 0 max(24px, calc((100vw - 1200px) / 2 + 24px)) 70px; max-width: 820px; box-sizing: content-box; }
.h-slide .h-slide-num { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--sun); text-transform: uppercase; margin: 0 0 18px; }
.h-slide .h-big {
  font-family: var(--display);
  font-variation-settings: "wdth" 120, "wght" 700;
  font-size: clamp(54px, 9vw, 120px);
  line-height: .92;
  letter-spacing: -.035em;
  color: #fff;
  margin: 0 0 8px;
}
.h-big small { font-size: .36em; letter-spacing: 0; color: var(--sun); margin-left: .15em; }
.h-slide h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 120, "wght" 700;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.12;
  margin: 0 0 12px;
  color: #fff;
}
.h-slide p { color: #C9D4E2; font-size: 17px; max-width: 56ch; margin: 0 0 16px; }
.h-slide p.src { font-family: var(--mono); font-size: 11.5px; color: var(--text-soft); }
.h-slide a.more { font-family: var(--display); font-variation-settings: "wdth" 110, "wght" 600; color: var(--sun-soft); text-decoration: none; font-size: 15px; }
.h-slide a.more:hover { text-decoration: underline; }
.h-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.1); z-index: 3; }
.h-progress span { display: block; height: 100%; width: 0; background: var(--sun); }
.h-slide-count { position: absolute; right: max(24px, calc((100vw - 1200px) / 2 + 24px)); top: 28px; z-index: 3; font-family: var(--mono); font-size: 13px; color: var(--text-soft); }
.h-slide-count b { color: #fff; font-weight: 500; }

/* phones / touch / reduced motion: native horizontal swipe with snapping */
.h-story.is-native .h-story-pin { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.h-story.is-native .h-story-pin::-webkit-scrollbar { display: none; }
.h-story.is-native .h-slide { scroll-snap-align: start; width: 88vw; height: min(78svh, 680px); margin-left: 12px; border-radius: 18px; }
.h-story.is-native .h-slide:first-child { margin-left: 24px; }
.h-story.is-native .h-slide:last-child { margin-right: 24px; }
.h-story.is-native .h-slide-img { inset: 0; }
.h-story.is-native .h-slide-body { padding: 0 22px 26px; }
.h-story.is-native .h-slide .h-big { font-size: clamp(40px, 11vw, 64px); white-space: nowrap; }
.h-story.is-native .h-slide p.src { font-size: 11px; }
.h-story.is-native .h-slide p { font-size: 15px; }
.h-story.is-native .h-progress, .h-story.is-native .h-slide-count { display: none; }
.h-swipe-hint { display: none; font-family: var(--mono); font-size: 12px; color: var(--text-soft); margin: 14px 24px 0; }
.h-story.is-native .h-swipe-hint { display: block; }

/* ---------- 4. who it's for ---------- */
.h-who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.h-who {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: 300px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
  border: 1px solid var(--line);
}
.h-who img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.h-who::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,14,26,.92) 0%, rgba(8,14,26,.2) 60%); }
.h-who:hover img { transform: scale(1.06); }
.h-who:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
.h-who div { padding: 22px; }
.h-who h3 { font-family: var(--display); font-variation-settings: "wdth" 120, "wght" 700; font-size: 21px; margin: 0 0 6px; color: #fff; }
.h-who p { margin: 0; font-size: 14.5px; color: #C9D4E2; }
.h-who .go { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--sun-soft); }

/* ---------- 5. journey ---------- */
.h-journey { background: var(--night-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h-steps { list-style: none; padding: 0; margin: 50px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; position: relative; }
.h-steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 2px; background: linear-gradient(90deg, var(--sun), rgba(245,165,36,.15)); }
.h-steps li { counter-increment: s; position: relative; padding: 0 16px 0 0; }
.h-steps li::before {
  content: counter(s);
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--night); border: 2px solid var(--sun); color: var(--sun);
  font-family: var(--display); font-variation-settings: "wdth" 110, "wght" 600; font-size: 18px;
  position: relative; margin-bottom: 18px;
}
.h-steps h3 { font-family: var(--display); font-variation-settings: "wdth" 110, "wght" 600; font-size: 17px; color: #fff; margin: 0 0 6px; }
.h-steps p { color: var(--text-soft); font-size: 14.5px; margin: 0 0 8px; }
.h-steps .t { font-family: var(--mono); font-size: 11.5px; color: var(--sun-soft); letter-spacing: .04em; }

/* ---------- 6. numbers ---------- */
.h-numbers { position: relative; isolation: isolate; overflow: hidden; }
.h-numbers-bg { position: absolute; inset: -10% 0; z-index: -2; }
.h-numbers-bg img { width: 100%; height: 100%; object-fit: cover; }
.h-numbers::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8,14,26,.84); }
/* why solar matters */
.h-imp { background: linear-gradient(180deg, var(--night) 0%, #0D1A2E 100%); }
.h-imp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.h-imp-card { background: rgba(19,33,58,.75); border: 1px solid rgba(255,255,255,.08); border-top: 2px solid var(--sun); border-radius: 16px; padding: 24px 22px; display: flex; flex-direction: column; }
.h-imp-card .v { font-family: var(--display); font-variation-settings: "wdth" 120, "wght" 700; font-size: clamp(36px, 3.6vw, 50px); line-height: 1; color: #fff; letter-spacing: -.02em; }
.h-imp-card .v small { font-size: .38em; color: var(--sun); margin-left: .15em; letter-spacing: 0; }
.home .h-imp-card h3 { font-family: var(--display); font-variation-settings: "wdth" 110, "wght" 600; font-size: 17px; margin: 14px 0 6px; }
.h-imp-card p { color: #C9D4E2; font-size: 15px; margin: 0 0 14px; }
.h-imp-card .src { margin-top: auto; font-family: var(--mono); font-size: 11px; color: var(--text-soft); }
.h-imp-card .src a { color: var(--text-soft); }
.h-imp-more { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); }
.h-imp-more p { color: #C9D4E2; margin: 0; font-size: 16px; }
.h-imp-more strong { color: #fff; }
.h-imp-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.h-imp-links a { font-family: var(--display); font-variation-settings: "wdth" 110, "wght" 600; color: var(--sun); text-decoration: none; font-size: 15px; }
.h-imp-links a:hover { text-decoration: underline; }
@media (max-width: 1000px) { .h-imp-grid { grid-template-columns: repeat(2, 1fr); } .h-imp-more { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .h-imp-grid { grid-template-columns: 1fr; } }

.h-num-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.h-num { border-top: 2px solid var(--sun); padding-top: 18px; }
.h-num .v { font-family: var(--display); font-variation-settings: "wdth" 120, "wght" 700; font-size: clamp(40px, 5.2vw, 68px); line-height: 1; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.h-num .v small { font-size: .4em; color: var(--sun); margin-left: .12em; letter-spacing: 0; }
.h-num p { color: #C9D4E2; margin: 10px 0 6px; font-size: 15.5px; }
.h-num .src { font-family: var(--mono); font-size: 11px; color: var(--text-soft); }
.h-num .src a { color: var(--text-soft); }

/* ---------- 7. trust ---------- */
.h-why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.h-why-photo { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.h-why-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-why-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.h-why-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.h-why-list .ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(245,165,36,.12); color: var(--sun); display: flex; align-items: center; justify-content: center; }
.h-why-list .ic svg { width: 20px; height: 20px; }
.h-why-list h3 { font-family: var(--display); font-variation-settings: "wdth" 110, "wght" 600; font-size: 17px; color: #fff; margin: 2px 0 4px; }
.h-why-list p { margin: 0; color: var(--text-soft); font-size: 15px; }
.h-why-list a { color: var(--sun-soft); }

/* ---------- 8. final CTA + lead form ---------- */
.h-final { background: radial-gradient(1200px 500px at 20% 0%, rgba(245,165,36,.16), transparent 60%), var(--night-2); border-top: 1px solid var(--line); }
.h-final-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.h-final .lead-box { color: var(--ink); margin-top: 0; border-radius: 16px; border-top-width: 4px; }
.h-final ul.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.h-final ul.ticks li { color: #C9D4E2; padding-left: 28px; position: relative; }
.h-final ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--leaf); font-weight: 700; }
.h-credits { text-align: center; font-family: var(--mono); font-size: 11px; color: var(--text-soft); padding: 18px 24px 30px; background: var(--night-2); }
.h-credits a { color: var(--text-soft); }

/* ---------- entrance animation hooks (home.js) ---------- */
.js-anim .h-rise { opacity: 0; transform: translateY(28px); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .h-hero-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; }
  .h-trust ul { grid-template-columns: 1fr 1fr; }
  .h-who-grid { grid-template-columns: 1fr 1fr; }
  .h-steps { grid-template-columns: 1fr; gap: 26px; }
  .h-steps::before { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; background: linear-gradient(180deg, var(--sun), rgba(245,165,36,.15)); }
  .h-steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; padding: 0; }
  .h-steps li::before { margin: 0; grid-row: span 3; }
  .h-num-grid { grid-template-columns: 1fr; gap: 28px; }
  .h-why-grid { grid-template-columns: 1fr; gap: 32px; }
  .h-why-photo { aspect-ratio: 16 / 10; }
  .h-final-grid { grid-template-columns: 1fr; gap: 30px; }
  .h-section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .h-hero::after { background: linear-gradient(0deg, rgba(10,19,34,.96) 0%, rgba(10,19,34,.7) 55%, rgba(10,19,34,.45) 100%); }
  .h-trust ul { grid-template-columns: 1fr; gap: 14px; }
  .h-who-grid { grid-template-columns: 1fr; }
  .h-who { min-height: 230px; }
  .h-check { padding: 20px; }
  .h-check-out .v { font-size: 19px; }
  .h-lede { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .h-who img { transition: none; }
  .js-anim .h-rise { opacity: 1; transform: none; }
}

/* shell.css sets body.shell-page to the light paper colour; the home page is dark */
body.shell-page.home { background: var(--night); color: var(--text); }
