/* === LaySolar — design system === */
:root {
  --orange: #f2a22a;
  --orange-deep: #d98612;
  --orange-soft: #fde7c4;
  --green: #2ba784;
  --green-deep: #1f7d63;
  --green-soft: #d4efe6;
  --gray-900: #2c3e32;
  --gray-700: #4a5550;
  --gray-500: #8a938e;
  --gray-300: #d8d9d3;
  --gray-100: #efece5;
  --cream: #faf7f2;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(44, 62, 50, 0.06), 0 2px 6px rgba(44, 62, 50, 0.04);
  --shadow-md: 0 4px 12px rgba(44, 62, 50, 0.08), 0 12px 32px rgba(44, 62, 50, 0.06);
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Varela Round", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--gray-900);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; color: var(--gray-700); }
a  { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
small { color: var(--gray-500); font-size: 0.85em; }
.muted { color: var(--gray-500); }
.accent-orange { color: var(--orange-deep); }
.accent-green  { color: var(--green-deep); }

/* === Nav === */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--gray-900); }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.brand span { font-size: 1.2rem; font-weight: 600; }
.nav-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.nav-links a {
  color: var(--gray-700);
  font-size: 0.95rem;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--green-deep); border-bottom-color: var(--green); text-decoration: none; }
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange); color: var(--gray-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--orange-deep); color: white; box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--green-deep); border-color: var(--green); }
.btn-ghost:hover { background: var(--green-soft); }
.btn-block { width: 100%; }
.btn-tiny {
  padding: 0.35rem 0.8rem; font-size: 0.8rem; border-radius: 999px;
  background: transparent; border: 1px solid var(--gray-300); color: var(--gray-700);
}
.btn-tiny:hover { background: var(--gray-100); color: var(--gray-900); }

/* === Hero === */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 4vw, 2.5rem) clamp(2rem, 4vw, 3.5rem);
  display: grid; grid-template-columns: 1.2fr 1fr;
  align-items: center; gap: clamp(1.5rem, 4vw, 3rem);
}
.eyebrow {
  display: inline-block;
  font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-soft);
  padding: 0.25rem 0.7rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.lede { font-size: 1.15rem; color: var(--gray-700); max-width: 36ch; }
.hero-cta { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1.5rem 0 1.8rem; }
.hero-stats {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: clamp(1rem, 4vw, 2.5rem); flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.4rem; color: var(--orange-deep); }
.hero-stats span { font-size: 0.85rem; color: var(--gray-500); }

.hero-art {
  position: relative; aspect-ratio: 1 / 1; max-width: 360px; justify-self: center;
  display: grid; place-items: center;
}
.hero-art img {
  width: 70%; border-radius: 50%; position: relative; z-index: 2;
  filter: drop-shadow(0 12px 30px rgba(242, 162, 42, 0.25));
}
.orbit {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px dashed var(--green-soft);
  animation: spin 40s linear infinite;
}
.orbit-2 {
  inset: 8%;
  border-color: var(--orange-soft);
  border-style: dotted;
  animation-duration: 60s;
  animation-direction: reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-art { max-width: 240px; }
}

/* === Journey strip === */
.journey {
  max-width: var(--max); margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem;
}
.journey h2 { text-align: center; margin-bottom: 1.8rem; }
.journey-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
  counter-reset: step;
}
.journey-steps li {
  background: white; border-radius: var(--radius);
  padding: 1.2rem 1.1rem; box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--green);
  display: flex; flex-direction: column; gap: 0.2rem;
}
.journey-steps li:nth-child(odd) { border-top-color: var(--orange); }
.journey-steps li span {
  display: inline-flex; width: 32px; height: 32px;
  background: var(--orange-soft); color: var(--orange-deep);
  border-radius: 50%; align-items: center; justify-content: center;
  font-weight: 600; margin-bottom: 0.4rem;
}
.journey-steps li:nth-child(even) span { background: var(--green-soft); color: var(--green-deep); }
.journey-steps b { font-size: 1.05rem; color: var(--gray-900); }
.journey-steps i { font-style: normal; color: var(--gray-500); font-size: 0.9rem; }

/* === Steps (sections) === */
.step {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem);
}
.step.alt { background: white; }
.step-head { max-width: var(--max); margin: 0 auto 2rem; }
.step-num {
  display: inline-block;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange-deep); background: var(--orange-soft);
  padding: 0.25rem 0.7rem; border-radius: 999px;
  margin-bottom: 0.6rem;
}
.step-head p { color: var(--gray-700); max-width: 60ch; }

/* === Cards === */
.card {
  background: white; border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 2vw, 1.8rem);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.step.alt .card { background: var(--cream); border-color: transparent; }

/* === Estimator === */
.estimator-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
}
@media (max-width: 820px) { .estimator-grid { grid-template-columns: 1fr; } }

.form-card label {
  display: flex; flex-direction: column; gap: 0.35rem;
  margin-bottom: 1.1rem; font-size: 0.95rem; color: var(--gray-700);
}
.form-card label span { font-weight: 600; color: var(--gray-900); }
.form-card label small { font-weight: 400; }
.form-card input, .form-card select {
  font-family: inherit; font-size: 1rem;
  padding: 0.75rem 0.9rem; border-radius: 12px;
  border: 1.5px solid var(--gray-300); background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-card input:focus, .form-card select:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft);
}
.form-note { font-size: 0.85rem; color: var(--gray-500); margin: 0.8rem 0 0; }

.result-card { display: flex; flex-direction: column; gap: 1rem; }
.result-card.empty { background: linear-gradient(135deg, var(--green-soft), var(--orange-soft)); border: none; }
.result-empty { margin: auto; text-align: center; max-width: 28ch; }
.result-empty h3 { color: var(--green-deep); }
.result-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.metric {
  background: var(--cream); border-radius: 12px;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--orange);
}
.metric:nth-child(even) { border-left-color: var(--green); }
.metric .label { font-size: 0.78rem; text-transform: uppercase; color: var(--gray-500); letter-spacing: 0.05em; }
.metric .value { font-size: 1.35rem; color: var(--gray-900); font-weight: 600; }
.metric .sub { font-size: 0.8rem; color: var(--gray-500); }
.result-headline {
  background: var(--gray-900); color: white;
  padding: 1rem 1.2rem; border-radius: 14px;
  display: flex; flex-direction: column; gap: 0.2rem;
}
.result-headline strong { color: var(--orange); font-size: 1.4rem; }

/* === Policy === */
.policy-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
@media (max-width: 820px) { .policy-grid { grid-template-columns: 1fr; } }
.policy-card h3 { color: var(--green-deep); margin-bottom: 1rem; }
.policy-card.central h3 { color: var(--orange-deep); }
.subsidy-table { width: 100%; border-collapse: collapse; margin-bottom: 0.8rem; }
.subsidy-table th, .subsidy-table td {
  text-align: left; padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--gray-100);
}
.subsidy-table th { font-weight: 600; color: var(--gray-700); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.subsidy-table td em { color: var(--orange-deep); font-style: normal; font-size: 0.85rem; }
.state-meta { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; font-size: 0.95rem; margin: 0.6rem 0 1rem; }
.state-meta dt { color: var(--gray-500); }
.state-meta dd { margin: 0; color: var(--gray-900); }

/* === Financing === */
.financing-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.fin-card {
  background: white; border-radius: var(--radius);
  padding: 1.4rem; border: 1.5px solid var(--gray-100);
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.fin-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--orange-soft); }
.step.alt .fin-card { background: var(--cream); }
.fin-card h3 { color: var(--gray-900); margin: 0; }
.fin-rate { font-size: 0.95rem; color: var(--orange-deep); font-weight: 600; }
.fin-card ul { padding-left: 1.1rem; margin: 0.3rem 0; color: var(--gray-700); font-size: 0.92rem; }
.fin-card .cons li { color: var(--gray-500); }
.fin-best { font-size: 0.85rem; color: var(--green-deep); margin-top: auto; }

.emi-strip {
  max-width: var(--max); margin: 1.5rem auto 0;
  background: var(--gray-900); color: white;
  padding: 1rem 1.4rem; border-radius: var(--radius);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
}
.emi-strip ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.emi-strip li { font-size: 0.95rem; }
.emi-strip li b { color: var(--orange); display: block; font-size: 1.1rem; }

/* === Vendors === */
.vendors-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.vendor-card {
  background: var(--cream); border-radius: var(--radius);
  padding: 1.3rem; border: 1.5px solid transparent;
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: border-color 0.15s, transform 0.15s;
}
.vendor-card:hover { border-color: var(--green); transform: translateY(-2px); }
.vendor-header { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.vendor-header h3 { margin: 0; }
.vendor-rating { color: var(--orange-deep); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.vendor-meta { font-size: 0.85rem; color: var(--gray-500); }
.vendor-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.3rem; }
.vendor-tags span {
  font-size: 0.78rem; padding: 0.2rem 0.6rem;
  background: var(--green-soft); color: var(--green-deep);
  border-radius: 999px;
}
.vendor-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  color: var(--green-deep); background: white;
  padding: 0.15rem 0.55rem; border-radius: 999px;
  border: 1px solid var(--green-soft);
}
.disclaimer { max-width: var(--max); margin: 1.5rem auto 0; font-size: 0.85rem; color: var(--gray-500); font-style: italic; }

/* === Checklist === */
.progress-bar {
  max-width: var(--max); margin: 0 auto 1.5rem;
  background: var(--gray-100); border-radius: 999px;
  height: 14px; position: relative; overflow: hidden;
}
.progress-bar > div {
  background: linear-gradient(90deg, var(--orange), var(--green));
  height: 100%; width: 0%;
  transition: width 0.4s ease;
}
.progress-bar > span {
  position: absolute; right: 0; top: 18px;
  font-size: 0.85rem; color: var(--gray-500);
}
.checklist-grid {
  max-width: var(--max); margin: 1.8rem auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.phase-card {
  background: white; border-radius: var(--radius);
  padding: 1.3rem; border-top: 4px solid var(--green);
  box-shadow: var(--shadow-sm);
}
.phase-card:nth-child(odd) { border-top-color: var(--orange); }
.phase-card h3 { margin-bottom: 0.8rem; }
.phase-card ul { list-style: none; padding: 0; margin: 0; }
.phase-card label {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem; cursor: pointer; line-height: 1.4;
  transition: color 0.15s;
}
.phase-card label:last-child { border-bottom: none; }
.phase-card input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: var(--green);
  width: 18px; height: 18px; flex-shrink: 0;
  cursor: pointer;
}
.phase-card label.done { color: var(--gray-500); text-decoration: line-through; }

/* === Care === */
.care-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
@media (max-width: 820px) { .care-grid { grid-template-columns: 1fr; } }
.tips-list { list-style: none; padding: 0; margin: 0; }
.tips-list li {
  background: var(--cream); border-radius: var(--radius);
  padding: 1rem 1.2rem; margin-bottom: 0.7rem;
  border-left: 4px solid var(--orange);
}
.tips-list li:nth-child(even) { border-left-color: var(--green); }
.tips-list b { display: block; margin-bottom: 0.2rem; }
.faq-list details {
  background: var(--cream); border-radius: var(--radius);
  padding: 0.9rem 1.2rem; margin-bottom: 0.6rem;
  cursor: pointer; transition: background 0.15s;
}
.faq-list details:hover { background: white; }
.faq-list summary {
  font-weight: 600; list-style: none; outline: none;
  position: relative; padding-right: 1.5rem;
}
.faq-list summary::after {
  content: "+"; position: absolute; right: 0; top: 0;
  font-size: 1.3rem; color: var(--green-deep); line-height: 1;
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0.6rem 0 0; color: var(--gray-700); }

/* === Final CTA === */
.cta-final {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  background: linear-gradient(135deg, var(--green-soft), var(--orange-soft));
}
.cta-buttons { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }

/* === Footer === */
footer {
  background: var(--gray-900); color: var(--gray-300);
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
}
footer > div { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
footer img { width: 32px; height: 32px; border-radius: 50%; }
footer span { font-weight: 600; color: white; }
footer p { font-size: 0.85rem; color: var(--gray-500); margin: 0; max-width: 70ch; }
footer a { color: var(--orange); }
