:root {
  --bg: #f4f7f4;
  --bg-cream: #f8f5ee;
  --bg-sage-2: #eef3ee;
  --panel: #ffffff;
  --ink: #1e2721;
  --heading: #21503a;
  --green: #2f7d57;
  --green-dark: #245f43;
  --muted: #66716a;
  --line: #d9e0da;
  --rust: #c2682f;
  --rust-dark: #a4521f;
  --rust-deep: #8a4b20;
  --tan: #e7dcc6;
  --gold: #cda85f;
  --clay: #c08a63;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(30, 39, 33, .08);
  --shadow-sm: 0 4px 14px rgba(30, 39, 33, .06);
}

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

html {
  scroll-behavior: smooth;
}

body.thg-homepage-template {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.thg-homepage-shell h1,
.thg-homepage-shell h2,
.thg-homepage-shell h3,
.thg-homepage-shell h4 {
  font-family: var(--serif);
  color: var(--heading);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: 0;
}

.thg-homepage-shell a {
  color: var(--green-dark);
  text-decoration: none;
}

.thg-homepage-shell a:hover {
  color: var(--rust);
}

.thg-homepage-shell img {
  max-width: 100%;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rust);
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: .18s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--rust);
  color: #fff;
}

.btn-primary:hover {
  background: var(--rust-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-outline:hover {
  background: var(--green-dark);
  color: #fff;
}

.btn-sm {
  padding: 10px 18px;
  font-size: .9rem;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 245, 238, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.admin-bar header.site {
  top: 32px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 22px;
}

.brand,
.foot-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--heading);
}

.brand {
  font-size: 1.32rem;
}

.brand .logo,
.foot-brand .logo {
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
}

.brand .logo {
  width: 38px;
  height: 38px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 500;
  font-size: .97rem;
}

.nav-links a {
  color: var(--ink);
}

.nav-links a:hover {
  color: var(--rust);
}

.hero {
  background:
    radial-gradient(1100px 460px at 78% -8%, rgba(205, 168, 95, .20), transparent 60%),
    linear-gradient(180deg, var(--bg-cream) 0%, var(--bg) 100%);
  padding: 74px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}

.hero h1 {
  font-size: 3.05rem;
  font-weight: 700;
  margin: 14px 0 16px;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 33ch;
  margin-bottom: 26px;
}

.signup {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1.25fr auto;
  gap: 8px;
  max-width: 650px;
}

.signup input[type="text"],
.signup input[type="email"] {
  min-width: 0;
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 12px 14px;
  color: var(--ink);
  background: transparent;
}

.signup .btn {
  flex-shrink: 0;
  border: 0;
}

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

.trust-note {
  font-size: .86rem;
  color: var(--muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-note svg {
  color: var(--green);
}

.magnet {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 26px;
  position: relative;
}

.magnet .tag {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--rust);
  color: #fff;
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
}

.magnet h3 {
  font-size: 1.32rem;
  margin: 6px 0 14px;
  padding-right: 58px;
}

.magnet .rowline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
  font-weight: 500;
}

.magnet .rowline:last-child {
  border-bottom: none;
}

.magnet .chk {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(47, 125, 87, .12);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.magnet .sun {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold), var(--rust));
  opacity: .9;
}

.values {
  background: var(--bg-sage-2);
  border-bottom: 1px solid var(--line);
}

.values .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 30px 24px;
}

.value {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.value .ic {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--rust);
  flex-shrink: 0;
}

.value h4 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 2px;
}

.value p {
  font-size: .9rem;
  color: var(--muted);
  margin: 0;
}

section.block {
  padding: 72px 0;
}

.sec-head {
  max-width: 640px;
  margin-bottom: 38px;
}

.sec-head h2 {
  font-size: 2.1rem;
  margin: 10px 0;
}

.sec-head p {
  color: var(--muted);
  font-size: 1.06rem;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.cards,
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card,
.post {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: .18s;
}

.card {
  display: flex;
  flex-direction: column;
}

.card:hover,
.post:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card .thumb {
  height: 158px;
  position: relative;
  display: grid;
  place-items: center;
}

.card .thumb.solar {
  background: linear-gradient(135deg, #eaf2ec, #dce9dd);
}

.card .thumb.gen {
  background: linear-gradient(135deg, #f3ece0, #ecdfca);
}

.card .thumb.calc {
  background: linear-gradient(135deg, #e9eef0, #dde7e9);
}

.card .thumb .gico {
  width: 58px;
  height: 58px;
  color: var(--green-dark);
  opacity: .85;
}

.card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, .9);
  color: var(--rust-deep);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}

.card .body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.card h3 {
  font-size: 1.28rem;
}

.card p {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.card .more {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--rust);
  font-size: .95rem;
  margin-top: auto;
}

.card .more:hover {
  color: var(--rust-dark);
}

.tool {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  color: #fff;
}

.tool .wrap {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
  padding: 60px 24px;
}

.tool h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 12px;
}

.tool p {
  color: rgba(255, 255, 255, .86);
  font-size: 1.08rem;
  margin-bottom: 22px;
  max-width: 46ch;
}

.tool .btn-primary {
  background: var(--rust);
}

.tool .btn-primary:hover {
  background: var(--rust-dark);
}

.tool .gauge {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  padding: 24px;
}

.tool .gauge .num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
}

.tool .gauge .bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  margin: 14px 0 6px;
  overflow: hidden;
}

.tool .gauge .bar > span {
  display: block;
  height: 100%;
  width: 64%;
  background: var(--gold);
  border-radius: 999px;
}

.tool .gauge small {
  color: rgba(255, 255, 255, .8);
}

.topics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.topic {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: .16s;
}

.topic:hover {
  border-color: var(--rust);
  transform: translateY(-2px);
}

.topic .ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--tan);
  display: grid;
  place-items: center;
  color: var(--rust-deep);
}

.topic strong {
  font-family: var(--sans);
  color: var(--heading);
  font-size: 1.02rem;
}

.topic span {
  font-size: .85rem;
  color: var(--muted);
}

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

.trust .wrap {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 46px;
  align-items: center;
  padding: 66px 24px;
}

.trust .portrait {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    radial-gradient(120px 120px at 70% 35%, rgba(205, 168, 95, .5), transparent 60%),
    linear-gradient(135deg, #dce9dd, #cbdfd0);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--green-dark);
}

.trust h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.trust p {
  color: var(--ink);
  margin-bottom: 14px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--green-dark);
  display: flex;
  gap: 7px;
  align-items: center;
}

.pill svg {
  color: var(--rust);
}

.posts {
  gap: 24px;
}

.post .ph {
  height: 150px;
  background: linear-gradient(135deg, #eef3ee, #e2ebe3);
}

.post .ph.b {
  background: linear-gradient(135deg, #f3ece0, #ecdfca);
}

.post .ph.c {
  background: linear-gradient(135deg, #e9eef0, #dde7e9);
}

.post .pb {
  padding: 18px 20px 22px;
}

.post .cat {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rust);
}

.post h3 {
  font-size: 1.14rem;
  margin: 7px 0 8px;
  line-height: 1.3;
}

.post p {
  font-size: .9rem;
  color: var(--muted);
}

.cta-band {
  background:
    radial-gradient(700px 300px at 20% 120%, rgba(194, 104, 47, .16), transparent 60%),
    var(--bg-sage-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-band .wrap {
  padding: 60px 24px;
  text-align: center;
}

.cta-band h2 {
  font-size: 2.05rem;
  margin-bottom: 10px;
}

.cta-band p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 54ch;
  margin: 0 auto 24px;
}

.cta-band .signup {
  margin: 0 auto;
}

footer.site {
  background: #1c2b22;
  color: #c8d3cb;
  padding: 56px 0 26px;
  font-size: .92rem;
}

footer.site h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: .86rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 700;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.foot-grid a {
  color: #c8d3cb;
  display: block;
  padding: 5px 0;
}

.foot-grid a:hover {
  color: var(--gold);
}

.foot-brand {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 12px;
}

.foot-brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.foot-note {
  font-size: .82rem;
  color: #93a399;
  max-width: 46ch;
  line-height: 1.55;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: .82rem;
  color: #93a399;
}

@media (max-width: 900px) {
  .hero-grid,
  .tool .wrap,
  .trust .wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero h1 {
    font-size: 2.3rem;
  }
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .nav-links {
    width: 100%;
    gap: 14px;
    flex-wrap: wrap;
    font-size: .92rem;
  }

  .cards,
  .posts {
    grid-template-columns: 1fr;
  }

  .topics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .admin-bar header.site {
    top: 46px;
  }

  .values .wrap,
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .signup {
    grid-template-columns: 1fr;
  }

  .signup .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 0 18px;
  }

  .hero {
    padding: 54px 0 46px;
  }

  section.block {
    padding: 54px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .sec-head h2,
  .tool h2,
  .trust h2,
  .cta-band h2 {
    font-size: 1.75rem;
  }

  .topics {
    grid-template-columns: 1fr;
  }

  .magnet {
    padding: 24px 20px 18px;
  }
}
