:root {
  --bg-stone: #f6f4ef;
  --bg-white: #ffffff;
  --border: #e4e0d8;
  --text-main: #1c1b18;
  --text-body: #4a4842;
  --text-muted: #78746b;
  --accent: #1b4d3e;
  --accent-hover: #13392e;
  --accent-soft: #eaf1ee;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-stone);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: rgba(246, 244, 239, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.brand {
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-location {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.93rem;
  font-weight: 500;
}

.nav-links a:not(.btn):hover {
  color: var(--text-main);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 13px 22px;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.86rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: var(--bg-white);
  color: var(--text-main);
  border-color: #cfc9be;
}

.btn-outline:hover {
  border-color: var(--text-main);
}

/* Hero */
.hero {
  padding: 88px 0 84px;
}

.hero-inner {
  max-width: 780px;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.2vw, 3.35rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-lead {
  font-size: 1.14rem;
  color: var(--text-body);
  margin-bottom: 32px;
  max-width: 660px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Sections */
.section {
  padding: 80px 0;
}

.bg-white {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-intro {
  max-width: 680px;
  margin-bottom: 44px;
}

.section-intro h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-intro p {
  color: var(--text-body);
  font-size: 1.04rem;
}

/* Fix Cards */
.fix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.fix-card {
  background: var(--bg-stone);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.fix-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.fix-card p {
  color: var(--text-body);
  font-size: 0.96rem;
}

/* Case Study Charts & Integrations */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.chart-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.chart-header h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.chart-header p {
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 22px;
}

.bar-comparison {
  display: grid;
  gap: 20px;
  margin-bottom: 22px;
}

.bar-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.bar-label-row span {
  color: var(--text-muted);
}

.bar-label-row .highlight-rate {
  color: var(--accent);
  font-weight: 700;
}

.stacked-bar {
  display: flex;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-stone);
  border: 1px solid var(--border);
}

.bar-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}

.seg-peak {
  background: #d97762;
  color: #ffffff;
}

.seg-cheap {
  background: #1b4d3e;
  color: #ffffff;
}

.seg-solar {
  background: #dfeadf;
  color: #1b4d3e;
}

.svg-chart-wrap {
  margin-bottom: 14px;
}

.daily-svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.swatch-peak { background: #d97762; }
.swatch-cheap { background: #1b4d3e; }
.swatch-solar { background: #dfeadf; border: 1px solid #b7d1b7; }
.swatch-solid { background: #1b4d3e; height: 3px; border-radius: 2px; }
.swatch-dashed { background: #b8b2a6; height: 3px; border-radius: 2px; }

.integrations-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.integrations-box > h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
}

.integration-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.int-num {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.integration-item h4 {
  font-size: 1.04rem;
  margin-bottom: 6px;
}

.integration-item p {
  font-size: 0.92rem;
  color: var(--text-body);
}

/* Pricing / Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.option-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.option-featured {
  border: 2px solid var(--accent);
}

.option-step {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.option-top h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.option-price {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-main);
}

.option-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.option-note {
  font-size: 0.83rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
  margin-bottom: 16px;
}

.option-desc {
  color: var(--text-body);
  font-size: 0.92rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* About */
.about-box {
  max-width: 760px;
  margin: 0;
}

.about-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 500;
  margin-bottom: 18px;
}

.about-content p {
  color: var(--text-body);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-left h2 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 14px;
}

.contact-left p {
  color: var(--text-body);
  margin-bottom: 28px;
}

.email-list {
  display: grid;
  gap: 14px;
}

.email-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}

.email-item span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.email-item a {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.email-item a:hover {
  text-decoration: underline;
}

.clean-form {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-stone);
  border: 1px solid #d5d0c5;
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-white);
}

.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-pill {
  cursor: pointer;
}

.check-pill input {
  display: none;
}

.check-pill span {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  background: var(--bg-stone);
  border: 1px solid #d5d0c5;
  color: var(--text-body);
}

.check-pill input:checked + span {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-emails {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-emails a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
}

@media (max-width: 960px) {
  .options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fix-grid,
  .charts-grid,
  .integrations-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .options-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .nav-links a:not(.btn) {
    display: none;
  }
}
