/* The Solarex — rooftop solar installation and care */

:root {
  --navy: #0b1c2c;
  --navy-2: #13293e;
  --navy-3: #1c3a55;
  --deep: #071320;
  --orange: #f37021;
  --orange-2: #ff8c42;
  --orange-soft: #fff3ea;
  --teal: #0e8a76;
  --teal-soft: #e6f5f1;
  --ink: #0f1e2b;
  --muted: #566575;
  --on-dark: rgba(255, 255, 255, 0.74);
  --soft: #f2f5f8;
  --line: rgba(15, 30, 43, 0.1);
  --line-dark: rgba(255, 255, 255, 0.12);
  --danger: #b42318;
  --radius: 10px;
  --header: 78px;
  --shadow: 0 18px 44px rgba(11, 28, 44, 0.1);
  --shadow-lg: 0 30px 70px rgba(7, 19, 32, 0.28);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); color-scheme: light; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Outfit, "Noto Sans Devanagari", sans-serif;
  font-size: 1.03rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

html[lang="hi"] body { font-family: "Noto Sans Devanagari", Outfit, sans-serif; line-height: 1.75; }

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { overflow-wrap: anywhere; }

h1, h2, h3 {
  font-family: Outfit, "Noto Sans Devanagari", sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 0.7rem;
}
html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3 { font-family: "Noto Sans Devanagari", Outfit, sans-serif; letter-spacing: 0; line-height: 1.35; }

h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
html[lang="hi"] h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
html[lang="hi"] h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 0.8rem; }
a { color: inherit; }
::selection { background: var(--orange); color: #fff; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: #fff;
  color: var(--ink);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
}
.skip:focus { top: 0.7rem; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.container { width: min(1200px, calc(100% - 2.5rem)); margin-inline: auto; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.kicker::before { content: ""; width: 2.2rem; height: 3px; border-radius: 2px; background: currentColor; }
html[lang="hi"] .kicker { letter-spacing: 0.02em; text-transform: none; font-size: 0.95rem; }

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

.section { padding: 5rem 0; }
@media (min-width: 900px) { .section { padding: 7rem 0; } }
.band { background: var(--soft); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-light, .btn-gold { background: var(--orange); color: #fff; box-shadow: 0 12px 26px rgba(243, 112, 33, 0.32); }
.btn-light:hover, .btn-gold:hover { background: #e2611a; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-3); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line-dark { background: transparent; color: var(--ink); border-color: rgba(15, 30, 43, 0.25); }
.btn-block { width: 100%; }
.btn-lg { min-height: 58px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }

/* Top bar + header */

.topbar { background: var(--deep); color: var(--on-dark); font-size: 0.85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar p { margin: 0; display: inline-flex; align-items: center; gap: 0.55rem; }
.topbar p::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.25); }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--orange-2); }
.topbar-links { display: flex; align-items: center; gap: 1.4rem; }
.topbar-wa span { color: var(--orange-2); }
@media (max-width: 640px) { .topbar-mail, .topbar p { display: none; } .topbar-inner { justify-content: center; } .topbar { font-size: 0.8rem; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(11, 28, 44, 0.06);
  backdrop-filter: blur(14px);
}
.header-bar { width: min(1200px, calc(100% - 2.5rem)); margin: 0 auto; min-height: var(--header); display: flex; align-items: center; gap: 0.8rem; }

.logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: #0b1c2c; }
.logo svg, .logo img { width: 42px; height: 42px; flex: none; }
.logo small { display: block; font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: #3d7c86; opacity: 1; line-height: 1.2; font-weight: 600; }
.logo strong {
  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #0b1c2c;
}
.logo-ex {
  background: linear-gradient(105deg, #0f9a64 10%, #e0a02e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.nav-links { display: none; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav-links a { position: relative; text-decoration: none; font-size: 0.96rem; font-weight: 600; color: var(--ink); padding: 0.4rem 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--orange); transform: scaleX(0); transition: transform 0.2s ease; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--orange); }

.header-tools { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.header-cta { display: none; }
.site-header .btn-gold { min-height: 46px; padding: 0.6rem 1.2rem; font-size: 0.95rem; box-shadow: none; }

.lang { display: inline-flex; padding: 0.2rem; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.lang button { border: 0; background: transparent; color: var(--muted); border-radius: 6px; min-height: 32px; padding: 0.15rem 0.65rem; font-size: 0.8rem; font-weight: 700; }
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.nav-toggle { width: 46px; height: 46px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle .bar { display: block; width: 18px; height: 2px; background: var(--ink); }

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
  .header-tools { margin-left: 1rem; }
  .header-cta { display: inline-flex; }
}
@media (max-width: 1039px) {
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0.4rem 1.25rem 1rem;
    background: #fff;
    border-bottom: 3px solid var(--orange);
    box-shadow: 0 20px 40px rgba(11, 28, 44, 0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
}

/* Dark surfaces */

.hero, .calc-hero, .process, .final, .site-footer { color: #fff; }
.hero .lede, .hero .hero-sub, .calc-hero .hero-sub, .process .lede, .final .lede { color: var(--on-dark); }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4.5rem;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(243, 112, 33, 0.22) 0%, transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(14, 138, 118, 0.28) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--deep) 100%);
}
.hero-media { position: absolute; inset: 0; overflow: hidden; background: var(--deep) url("../assets/video/hero-solar-poster.jpg") center / cover no-repeat; }
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 70% at 88% 8%, rgba(243, 112, 33, 0.28) 0%, transparent 60%),
    linear-gradient(100deg, rgba(7, 19, 32, 0.92) 0%, rgba(11, 28, 44, 0.74) 45%, rgba(11, 28, 44, 0.38) 100%),
    linear-gradient(0deg, rgba(7, 19, 32, 0.7) 0%, transparent 35%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(120deg, #000 10%, transparent 75%);
}

.hero-grid, .final-grid, .subsidy-layout, .care-grid { position: relative; z-index: 1; display: grid; gap: 2rem; min-width: 0; }
.hero-grid { z-index: 2; }
.hero-grid > *, .final-grid > * { min-width: 0; }

.hero h1 { color: #fff; }
.hero-sub { font-size: 1.18rem; max-width: 38rem; margin: 1rem 0 0; }
.hero .btn-line { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.hero .btn-line:hover { background: #fff; color: var(--ink); }

.points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.75rem; }
.points li { position: relative; padding-left: 2rem; font-weight: 600; }
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 4px;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
}
.hero .points li, .final .points li { color: #fff; }
@media (min-width: 560px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hero-panel {
  align-self: center;
  max-width: 24rem;
  padding: 1.6rem;
  border-radius: 16px;
  background: rgba(11, 28, 44, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 4px solid var(--orange);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.hero-panel-kicker { margin: 0; color: var(--orange-2); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-panel-value { margin: 0.6rem 0 0; font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: #fff; }
.hero-panel-label { margin: 0.5rem 0 0; color: var(--on-dark); font-size: 0.95rem; }
.hero-panel-rows { margin: 1.3rem 0 0; display: grid; gap: 0.45rem; }
.hero-panel-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0.85rem; border-radius: 8px; background: rgba(255, 255, 255, 0.07); }
.hero-panel-rows dt { color: var(--on-dark); font-weight: 500; }
.hero-panel-rows dd { margin: 0; color: #fff; font-weight: 700; }
.hero-panel-rows .is-max { background: var(--orange); }
.hero-panel-rows .is-max dt { color: #fff; font-weight: 600; }
.hero-panel-deadline { margin: 1rem 0 0; display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: #fff; font-size: 0.95rem; }
.hero-panel-deadline::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--orange-2); box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.25); }
.hero-panel-link { display: inline-block; margin-top: 1.1rem; color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.hero-panel-link:hover { color: var(--orange-2); }

@media (min-width: 980px) {
  .hero { padding: 6rem 0 7.5rem; min-height: min(calc(100vh - 118px), 760px); display: flex; flex-direction: column; justify-content: center; }
  .hero-grid { grid-template-columns: 1.35fr 0.65fr; align-items: center; gap: 4rem; }
  .hero-panel { justify-self: end; width: 100%; }
}

/* Stats strip */

.stats-strip { position: relative; z-index: 2; margin-top: -2.5rem; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border-top: 4px solid var(--orange);
}
.stat-item { padding: 1.4rem 1.3rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-item strong { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--navy); }
.stat-item span { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
@media (min-width: 900px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-item { padding: 1.8rem 1.6rem; border-bottom: 0; }
  .stat-item:last-child { border-right: 0; }
}

/* Lead form */

.lead-card {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 1.6rem 1.4rem 1.4rem;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--orange);
}
.lead-card .kicker { margin-bottom: 0.6rem; }
.lead-card h2, .lead-card h3 { font-size: 1.7rem; color: var(--ink); }
.free-note { color: var(--muted); font-size: 0.86rem; margin: 0.6rem 0 0; text-align: center; }

.form-body, .form-grid { display: grid; gap: 0.8rem; }
.field { display: grid; gap: 0.35rem; font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea, .phone {
  width: 100%;
  border: 1.5px solid rgba(15, 30, 43, 0.16);
  background: #fff;
  border-radius: 8px;
  min-height: 50px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input, .field select, .field textarea { padding: 0.75rem 0.9rem; font-weight: 500; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 28, 44, 0.1); }
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2rem; }
.field [aria-invalid="true"] { border-color: var(--danger); }

.phone { display: flex; align-items: center; padding-left: 0.9rem; }
.phone span { color: var(--muted); font-weight: 700; }
.field .phone input { border: 0; min-height: 46px; padding: 0.7rem 0.75rem 0.7rem 0.45rem; width: 100%; background: transparent; box-shadow: none; }
.phone:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 28, 44, 0.1); }

.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.86rem; font-weight: 500; line-height: 1.45; color: var(--muted); }
.consent input { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; accent-color: var(--orange); flex: none; }
.field-error { color: var(--danger); font-size: 0.82rem; font-weight: 600; margin: -0.25rem 0 0; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-success { padding: 0.4rem 0 0; }
.form-success h3 { font-size: 1.5rem; }
.form-success p { color: var(--muted); }
.success-actions { display: grid; gap: 0.55rem; margin-top: 1rem; }

@media (min-width: 800px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: span 2; }
}

/* Offerings */

.offers { display: grid; gap: 1.2rem; margin-top: 2.6rem; }
.offer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 2rem 1.6rem 1.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}
.offer::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.offer:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.offer:hover::after { transform: scaleX(1); }
.offer:first-child { background: var(--navy); color: #fff; border-color: var(--navy); }
.offer:first-child p { color: var(--on-dark); }
.offer:first-child .offer-icon { background: var(--orange); color: #fff; }
.offer h3 { font-size: 1.3rem; margin: 0.6rem 0 0; }
.offer p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.offer-icon, .why-icon { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 10px; background: var(--navy); color: #fff; }
.offer-icon svg, .why-icon svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.offer-link { margin-top: auto; padding-top: 1rem; font-weight: 700; color: var(--orange); }
.offer-link::after { content: " →"; }

@media (min-width: 700px) { .offers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .offers { grid-template-columns: repeat(4, 1fr); } }

/* Why */

.why-grid { display: grid; gap: 1.2rem; margin-top: 2.6rem; }
.why-card { padding: 1.8rem 1.5rem; background: #fff; border-radius: 14px; border-top: 4px solid var(--navy); box-shadow: 0 10px 30px rgba(11, 28, 44, 0.06); }
.why-card:nth-child(even) { border-top-color: var(--orange); }
.why-icon { background: var(--orange-soft); color: var(--orange); }
.why-card h3 { font-size: 1.18rem; margin: 1.1rem 0 0.45rem; }
.why-card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

/* Process */

.process {
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(243, 112, 33, 0.16) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 100%);
}
.process h2 { color: #fff; }
.process-grid { list-style: none; padding: 0; display: grid; gap: 1.2rem; margin: 2.8rem 0 0; }
.step { position: relative; padding: 1.8rem 1.5rem; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark); }
.step-no { display: block; font-size: 3.2rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--orange); margin-bottom: 1rem; }
.step-no::before { content: "0"; }
.step h3 { font-size: 1.2rem; color: #fff; margin-bottom: 0.5rem; }
.step p { color: var(--on-dark); margin: 0; font-size: 0.97rem; }

@media (min-width: 700px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

/* Subsidy */

.portal { font-weight: 600; margin-top: 1.2rem; }
.portal a { color: var(--orange); }

.deadline {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1.8rem;
  padding: 1.4rem;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  border-left: 5px solid var(--orange);
  box-shadow: var(--shadow-lg);
}
.deadline > svg { flex: none; width: 2.6rem; height: 2.6rem; padding: 0.55rem; border-radius: 10px; background: var(--orange); fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.deadline-title { margin: 0; font-size: 1.25rem; font-weight: 700; color: #fff; }
.deadline-body { margin: 0.45rem 0 1rem; color: var(--on-dark); font-size: 0.95rem; }

.sub-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.sub-table th, .sub-table td { padding: 1.05rem 1.4rem; text-align: left; border-top: 1px solid var(--line); }
.sub-table th { border-top: 0; background: var(--navy); color: #fff; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }
html[lang="hi"] .sub-table th { text-transform: none; letter-spacing: 0; }
.sub-table td:last-child, .sub-table th:last-child { text-align: right; }
.sub-table td:last-child { font-weight: 700; color: var(--navy); white-space: nowrap; font-size: 1.08rem; }
.sub-table .sub-max td { background: var(--orange-soft); }
.sub-table .sub-max td:first-child { font-weight: 700; box-shadow: inset 4px 0 0 var(--orange); }
.sub-table .sub-max td:last-child { color: var(--orange); font-size: 1.35rem; }
.sub-note { color: var(--muted); font-size: 0.92rem; margin: 1.1rem 0 1.3rem; }
.sub-extra { padding: 1.4rem 1.5rem; background: #fff; border-radius: 12px; border-left: 4px solid var(--teal); margin-bottom: 1rem; }
.sub-extra h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.sub-extra p { color: var(--muted); margin: 0; font-size: 0.96rem; }

.warning { margin-top: 1rem; background: #fff; border-left: 4px solid var(--orange); border-radius: 12px; padding: 1.2rem 1.4rem; }
.warning p:last-child { margin-bottom: 0; }
.warning a { color: var(--orange); font-weight: 700; }

@media (min-width: 900px) { .subsidy-layout { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; } }

/* System types */

.modes { margin-top: 2rem; }
.mode-tabs { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; padding: 0.3rem; background: var(--soft); border-radius: 12px; }
.mode-tab { position: relative; border-radius: 9px; min-height: 46px; padding: 0.5rem 1.3rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; color: var(--muted); }
.mode-tab input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mode-tab:has(input:checked) { background: var(--navy); color: #fff; box-shadow: 0 8px 18px rgba(11, 28, 44, 0.2); }
.mode-tab:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 3px; }
.mode { display: none; margin-top: 1.2rem; background: #fff; border-radius: 14px; padding: 2rem 1.8rem; border: 1px solid var(--line); border-left: 5px solid var(--orange); max-width: 52rem; box-shadow: var(--shadow); }
.mode h3 { font-size: 1.5rem; }
.mode > p { color: var(--muted); font-size: 1.05rem; }
.mode ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.mode li { position: relative; padding-left: 1.6rem; }
.mode li::before { content: ""; position: absolute; left: 0; top: 0.6rem; width: 0.6rem; height: 0.6rem; border-radius: 2px; background: var(--teal); }
.modes:has(#plant-on:checked) .mode-on,
.modes:has(#plant-hy:checked) .mode-hy,
.modes:has(#plant-off:checked) .mode-off { display: block; }

/* Care */

.care { background: var(--soft); }
.care-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; counter-reset: care; }
.care-list li { counter-increment: care; position: relative; padding: 1.4rem 1.5rem 1.4rem 4.6rem; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(11, 28, 44, 0.05); }
.care-list li::before { content: counter(care, decimal-leading-zero); position: absolute; left: 1.4rem; top: 1.35rem; font-size: 1.5rem; font-weight: 700; color: var(--orange); }
.care-list h3 { font-size: 1.18rem; margin-bottom: 0.3rem; }
.care-list p { color: var(--muted); margin: 0; }

@media (min-width: 900px) {
  .care-grid { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; }
  .care-sticky { position: sticky; top: calc(var(--header) + 2rem); }
}

/* Cities + FAQ */

.cities-note { color: var(--muted); margin: 1.6rem 0 0.8rem; font-weight: 600; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; }
.pills li { background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 0.5rem 0.95rem; font-size: 0.94rem; font-weight: 600; transition: border-color 0.15s ease, color 0.15s ease; }
.pills li:hover { border-color: var(--orange); color: var(--orange); }

.faq-list { display: grid; gap: 0.7rem; max-width: 860px; margin-top: 2.2rem; }
.faq-list details { background: #fff; border-radius: 12px; padding: 1.15rem 1.4rem; border: 1px solid var(--line); transition: box-shadow 0.2s ease; }
.faq-list details[open] { box-shadow: var(--shadow); border-left: 4px solid var(--orange); }
.faq-list summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: var(--soft); font-size: 1.3rem; font-weight: 600; color: var(--navy); line-height: 1; }
.faq-list details[open] summary::after { content: "–"; background: var(--orange); color: #fff; }
.faq-list details p { color: var(--muted); margin: 0.85rem 0 0.1rem; }

/* Final CTA + footer */

.final {
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(243, 112, 33, 0.2) 0%, transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(14, 138, 118, 0.25) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}
.final h2 { color: #fff; }
@media (min-width: 900px) { .final-grid { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: center; } }

.site-footer { background: var(--deep); padding: 4.5rem 0 3rem; }
.site-footer .logo,
.site-footer .logo small,
.site-footer .logo strong { color: #fff; }
.site-footer .logo-ex {
  background: linear-gradient(105deg, #7dffe0 0%, #ffd36a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.footer-grid { display: grid; gap: 2rem; }
.footer-blurb { color: var(--on-dark); max-width: 22rem; margin: 1rem 0 0; font-size: 0.96rem; }
.footer-label { margin: 0 0 0.9rem; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
html[lang="hi"] .footer-label { letter-spacing: 0.02em; text-transform: none; font-size: 0.95rem; }
.footer-links { display: grid; gap: 0.55rem; }
.footer-links a { text-decoration: none; color: rgba(255, 255, 255, 0.82); }
.footer-links a:hover { color: var(--orange-2); }
.footer-base { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); }
.disclaimer, .rights { color: rgba(255, 255, 255, 0.55); font-size: 0.86rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* Calculator page */

.calc-hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 6rem;
  background:
    radial-gradient(55% 80% at 90% 0%, rgba(243, 112, 33, 0.22) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--deep) 100%);
}
.calc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(120deg, #000 10%, transparent 75%);
}
.calc-hero .container { position: relative; }
.calc-hero h1 { color: #fff; max-width: 46rem; }
.calc-hero .hero-sub { max-width: 46rem; }

.calc-badges { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.calc-badges li { padding: 0.55rem 1rem 0.55rem 2.2rem; border-radius: 8px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-dark); font-size: 0.92rem; font-weight: 600; position: relative; }
.calc-badges li::before { content: ""; position: absolute; left: 0.85rem; top: 50%; width: 0.6rem; height: 0.6rem; margin-top: -0.3rem; border-radius: 2px; background: var(--orange); }
.calc-badges .badge-deadline { background: var(--orange); border-color: var(--orange); color: #fff; }
.calc-badges .badge-deadline::before { background: #fff; }

.calc-app { padding: 0 0 5rem; background: var(--soft); }
.calc-shell { position: relative; z-index: 2; margin-top: -3.5rem; display: grid; gap: 1.4rem; align-items: start; }
.calc-shell > * { min-width: 0; }

.calc-inputs { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 0.5rem 1.5rem; border-top: 5px solid var(--orange); }
.calc-step { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.calc-step:first-child { border-top: 0; }
.calc-step-head { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.8rem; font-weight: 700; font-size: 1.1rem; }
.calc-step-head em { margin-left: auto; font-style: normal; font-size: 0.76rem; color: var(--muted); font-weight: 600; padding: 0.2rem 0.65rem; border-radius: 6px; background: var(--soft); }
.calc-step-no { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: var(--navy); color: #fff; font-size: 0.92rem; flex: none; }

.slider-block, .field-inline { display: grid; gap: 0.4rem; margin-top: 0.9rem; font-weight: 600; font-size: 0.92rem; }
.slider-top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.slider-top strong { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.03em; color: var(--navy); white-space: nowrap; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--orange), var(--navy)); margin: 0.9rem 0 0.4rem; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--orange), 0 6px 14px rgba(243, 112, 33, 0.4); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--orange); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--orange), 0 6px 14px rgba(243, 112, 33, 0.4); cursor: pointer; }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.5rem; }
.chips button { border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 0.45rem 0.85rem; font-size: 0.88rem; font-weight: 700; color: var(--ink); transition: background 0.15s ease, border-color 0.15s ease; }
.chips button:hover { border-color: var(--navy); }
.chips button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.input-unit { display: flex; align-items: center; min-height: 50px; border-radius: 8px; border: 1.5px solid rgba(15, 30, 43, 0.16); background: #fff; overflow: hidden; }
.input-unit:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 28, 44, 0.1); }
.input-unit > span { padding: 0 0.9rem; color: var(--muted); font-weight: 600; background: var(--soft); align-self: stretch; display: grid; place-items: center; }
.input-unit input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0.7rem 0.9rem; font-weight: 600; background: transparent; }

.help { color: var(--muted); font-size: 0.88rem; font-weight: 400; margin: 0.55rem 0 0; }

.seg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.seg-grid button { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; padding: 1rem; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; text-align: left; transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease; }
.seg-grid button:hover { border-color: var(--navy); transform: translateY(-2px); }
.seg-grid svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--orange); }
.seg-grid button[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 12px 24px rgba(11, 28, 44, 0.22); }
.seg-grid button[aria-checked="true"] svg { color: var(--orange-2); }
@media (min-width: 560px) and (max-width: 999px), (min-width: 1200px) { .seg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.check-line { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1rem; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.check-line input { margin-top: 0.2rem; accent-color: var(--orange); width: 1.1rem; height: 1.1rem; flex: none; }

.calc-results { display: grid; gap: 1rem; }

.system-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 1.8rem 1.6rem 1.5rem;
  color: #fff;
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(243, 112, 33, 0.45) 0%, transparent 55%),
    linear-gradient(150deg, var(--navy-3) 0%, var(--navy) 100%);
  box-shadow: var(--shadow-lg);
}
.system-card .kicker { color: var(--orange-2); }
.result-kw { font-weight: 700; font-size: clamp(3.8rem, 8vw, 5.6rem); line-height: 0.95; letter-spacing: -0.045em; margin: 0.1rem 0 0.4rem; }
.result-kw small { font-size: 0.34em; letter-spacing: 0; margin-left: 0.2rem; opacity: 0.85; }
.result-roof { margin: 0; color: var(--on-dark); font-size: 0.98rem; }

.panel-sky { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 1.3rem; transform: perspective(500px) rotateX(18deg); transform-origin: center top; }
.panel-sky span { height: 24px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.panel-sky span.lit {
  background:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(180deg, #2c5a85, #10283f);
  background-size: 100% 6px, 12px 100%, auto;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.calc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.stat { display: grid; gap: 0.3rem; padding: 1.1rem 1.15rem; background: #fff; border-radius: 12px; box-shadow: 0 8px 22px rgba(11, 28, 44, 0.06); }
.stat span { color: var(--muted); font-size: 0.84rem; font-weight: 600; }
.stat strong { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.015em; color: var(--navy); }
.stat-hero { background: var(--orange); }
.stat-hero span { color: rgba(255, 255, 255, 0.85); }
.stat-hero strong { color: #fff; font-size: 1.65rem; }
@media (min-width: 560px) { .calc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.calc-card { background: #fff; border-radius: 14px; padding: 1.4rem 1.5rem; box-shadow: 0 8px 22px rgba(11, 28, 44, 0.06); }
.calc-card-title { font-size: 1.1rem; margin: 0 0 1rem; letter-spacing: -0.01em; }

.compare { display: grid; gap: 0.9rem; }
.compare-row { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 0.8rem; align-items: center; font-size: 0.92rem; color: var(--muted); font-weight: 500; }
.compare-row strong { color: var(--ink); font-size: 1.08rem; text-align: right; line-height: 1.2; }
.compare-row strong small { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.compare-note { display: flex; justify-content: space-between; gap: 0.8rem; margin: 1rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--line, rgba(0,0,0,.08)); font-size: 0.92rem; color: var(--muted); font-weight: 500; }
.compare-note strong { color: var(--ink); font-size: 1.08rem; white-space: nowrap; }
.compare-bar { grid-column: 1 / -1; grid-row: 2; height: 14px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.compare-bar span { display: block; height: 100%; border-radius: inherit; transition: width 0.4s ease; }
.bar-before { background: var(--navy); }
.bar-after { background: var(--orange); }

.cost-list { margin: 0; display: grid; }
.cost-list div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.cost-list div:last-child { border-bottom: 0; }
.cost-list dt { color: var(--muted); font-weight: 500; }
.cost-list dd { margin: 0; font-weight: 700; text-align: right; }
.cost-list .sub-row dd { color: var(--teal); }
.cost-list .net-row dd { color: var(--navy); font-size: 1.15rem; }
.biz-note { color: var(--muted); font-size: 0.92rem; margin: 0.5rem 0 0; }
.cap-note { margin: 0; padding: 0.85rem 1rem; border-radius: 10px; background: var(--orange-soft); border-left: 4px solid var(--orange); color: var(--ink); font-size: 0.92rem; }

.chart svg { display: block; width: 100%; height: 210px; overflow: visible; }
.chart .bar-save { fill: #c9d5e0; }
.chart .bar-paid { fill: var(--navy); }
.chart .cost-line { stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: 7 5; }
.chart .axis { stroke: rgba(15, 30, 43, 0.15); }
.chart text { font: 600 12px Outfit, sans-serif; fill: var(--muted); }
.chart .chart-top { font-weight: 700; fill: var(--navy); font-size: 14px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem; margin-top: 0.8rem; font-size: 0.86rem; color: var(--muted); font-weight: 500; }
.chart-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.lg-save::before { content: ""; width: 0.85rem; height: 0.85rem; border-radius: 2px; background: linear-gradient(90deg, #c9d5e0 50%, var(--navy) 50%); }
.lg-cost::before { content: ""; width: 1.2rem; border-top: 2.5px dashed var(--orange); }
.breakeven { margin: 0.8rem 0 0; padding: 0.7rem 0.9rem; border-radius: 8px; background: var(--teal-soft); font-weight: 700; color: var(--teal); }

.calc-disclaimer { margin: -0.3rem 0 0; text-align: center; color: var(--muted); font-size: 0.84rem; }

.method-grid { display: grid; gap: 1rem; margin-top: 2.4rem; }
.method-card { background: #fff; border-radius: 12px; padding: 1.5rem 1.5rem; border-top: 4px solid var(--navy); box-shadow: 0 8px 22px rgba(11, 28, 44, 0.05); }
.method-card:nth-child(even) { border-top-color: var(--orange); }
.method-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.method-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.method-note { margin-top: 1.4rem; color: var(--muted); font-size: 0.9rem; max-width: 56rem; }
@media (min-width: 700px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .method-grid { grid-template-columns: repeat(3, 1fr); } }

@media (min-width: 1000px) {
  .calc-hero { padding: 4.5rem 0 7rem; }
  .calc-shell { grid-template-columns: 0.95fr 1.05fr; gap: 2rem; }
}

/* Floating actions */

.float-wa {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 36;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(243, 112, 33, 0.4);
}
.float-wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.float-wa svg { width: 27px; height: 27px; fill: currentColor; }

.dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(11, 28, 44, 0.08);
  gap: 0.55rem;
}
.dock a { text-decoration: none; text-align: center; border-radius: var(--radius); min-height: 48px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.dock a:first-child { background: var(--navy); color: #fff; }
.dock a:last-child { background: var(--orange); color: #fff; }

@media (min-width: 721px) { .lead-card .btn-block { padding-right: 3.6rem; } }
@media (min-width: 721px) and (max-width: 1280px) { .calc-results .btn-lg { padding-right: 4.4rem; } }
@media (max-width: 720px) {
  .dock { display: grid; grid-template-columns: 1fr 1fr; }
  .float-wa { display: none; }
  .site-footer { padding-bottom: 7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .offer:hover, .seg-grid button:hover { transform: none; }
  .hero-video { display: none; }
}

@media print {
  .topbar, .site-header, .dock, .float-wa, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .hero, .calc-hero, .process, .final, .site-footer, .system-card { background: #fff; color: #000; }
}
