:root {
  color-scheme: light;
  --green: #255f4b;
  --green-dark: #173f32;
  --green-soft: #e8f2ec;
  --blue: #285c7a;
  --gold: #d8a431;
  --ink: #16201b;
  --muted: #5d6a63;
  --line: #d8e0d8;
  --panel: #f5f8f4;
  --white: #ffffff;
  --shadow: 0 18px 46px rgba(22, 32, 27, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.nav,
.menu-row__inner,
.section-inner,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-actions,
.footer-links,
.footer-social,
.pill-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.34rem;
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  box-shadow: inset -8px -8px 0 rgba(0, 0, 0, 0.1);
}

.brand-mark svg,
.search button svg {
  width: 21px;
  height: 21px;
}

.search {
  height: 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid #c8d4ca;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.search input {
  min-width: 0;
  border: 0;
  padding: 0 16px;
  outline: none;
}

.search button,
.icon-button,
.primary-button,
.secondary-button,
.mini-button {
  border: 0;
  cursor: pointer;
  font-weight: 850;
}

.search button {
  width: 54px;
  color: var(--white);
  background: var(--green);
  display: grid;
  place-items: center;
}

.icon-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: var(--panel);
  border-radius: 8px;
  color: var(--green-dark);
}

.menu-row {
  border-top: 0;
}

.menu-row__inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu-row__inner::-webkit-scrollbar {
  display: none;
}

.menu-row nav {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 760;
}

.menu-row nav a {
  border-radius: 8px;
  padding: 8px 12px;
}

.menu-row nav a.is-active {
  color: var(--white);
  background: var(--green);
  font-weight: 850;
}

.menu-row nav a.nav-home {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 8px 12px;
}

.menu-row nav a.nav-home.is-active {
  color: var(--white);
  background: var(--green);
}

.nav-home img {
  display: none;
}

.nav-home span {
  font-weight: inherit;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.contact-chip {
  color: var(--green-dark);
  font-weight: 850;
  white-space: nowrap;
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(232, 242, 236, 0.95), rgba(245, 248, 244, 0.92)),
    url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1400&q=80") center/cover;
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 430px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 36px;
  align-items: center;
  padding: 48px 0;
}

.page-hero__inner--solo {
  grid-template-columns: 1fr;
  min-height: 0;
}

.install-subbar {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.install-subbar .section-inner {
  display: flex;
  justify-content: flex-end;
  padding: 10px 0;
}

/* Shared fade-cycle rotator, driven by rotator.js. Used for the Learning
   Center's top-posts/fun-facts ticker and the Installation page's
   fun-facts strip. */
.ecoset-rotator {
  opacity: 0;
  transition: opacity 0.25s ease;
  min-height: 1.4em;
}

.ecoset-rotator.is-visible {
  opacity: 1;
}

.lc-ticker-wrap {
  max-width: 620px;
}

.lc-ticker {
  margin: 0;
  color: var(--green-dark);
  font-size: 1.1rem;
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 3px;
  background: var(--green);
  border-radius: 999px;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 0.98;
}

.page-hero p,
.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.62;
}

.primary-button,
.secondary-button,
.mini-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  padding: 0 18px;
}

.primary-button {
  color: var(--white);
  background: var(--green);
}

.secondary-button {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.mini-button {
  min-height: 40px;
  color: var(--green-dark);
  background: var(--green-soft);
}

.hero-card,
.metric-card,
.product-card,
.feature-card,
.info-card,
.plan-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

/* One-shot glow ring, triggered from contact.js when a "Choose the Right
   Path" mailto link is clicked. Plays once, then the class is removed. */
.glow-once {
  position: relative;
  isolation: isolate;
}

.glow-once::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  padding: 2px;
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 92, 200, 0.85),
    rgba(255, 255, 255, 0.95),
    rgba(255, 92, 200, 0.85),
    rgba(255, 255, 255, 0.95)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: glowOnceRing 1.1s ease-out;
}

@keyframes glowOnceRing {
  0% {
    opacity: 0;
    transform: rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  12% {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9))
      drop-shadow(0 0 10px rgba(255, 92, 200, 0.55));
  }
  85% {
    opacity: 1;
    transform: rotate(320deg);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85))
      drop-shadow(0 0 10px rgba(255, 92, 200, 0.5));
  }
  100% {
    opacity: 0;
    transform: rotate(360deg);
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
}

.hero-card {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 285px;
  display: block;
  object-fit: cover;
}

.hero-card__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.hero-card strong {
  display: block;
  font-size: 1.35rem;
}

.hero-card span,
.product-card span,
.metric-card span,
.plan-card span,
.feature-card span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

section {
  padding: 54px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.section-heading a {
  color: var(--green-dark);
  font-weight: 850;
  white-space: nowrap;
}

.resource-count-link {
  position: relative;
  min-height: 76px;
  display: inline-flex;
  align-items: flex-end;
  padding: 46px 10px 8px 10px;
  color: var(--muted);
  isolation: isolate;
}

.resource-count {
  font-weight: 850;
  white-space: nowrap;
}

.resource-count__s {
  display: inline-block;
  transform-origin: 50% 90%;
  animation: resourceSFlip 5.8s cubic-bezier(0.3, 0.7, 0.25, 1) infinite;
}

.cartoon-horse {
  position: absolute;
  left: 8px;
  top: 0;
  z-index: 1;
  width: 56px;
  height: 44px;
  pointer-events: none;
  background: url("forum-horse.png") center / contain no-repeat;
  filter: sepia(0.35) contrast(1.08) saturate(0.82) drop-shadow(0 4px 0 rgba(22, 32, 27, 0.08));
  transform: rotate(-6deg);
  animation: horseDash 5.8s cubic-bezier(0.3, 0.7, 0.25, 1) infinite;
}

.cartoon-horse::before,
.cartoon-horse::after {
  content: "";
  position: absolute;
  left: -14px;
  top: 28px;
  width: 42px;
  height: 2px;
  border-top: 2px solid rgba(93, 74, 43, 0.36);
  border-radius: 999px;
  transform: rotate(-8deg);
}

.cartoon-horse::after {
  left: -22px;
  top: 36px;
  width: 58px;
  opacity: 0.72;
}

.cartoon-horse__dust {
  position: absolute;
  left: -18px;
  top: 40px;
  padding: 1px 5px;
  color: #7c6040;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: rgba(255, 248, 229, 0.72);
  border-radius: 999px;
  opacity: 0;
  transform: rotate(-8deg) scale(0.86);
  animation: dustMessage 5.8s ease-in-out infinite;
}

.resource-count-link:focus-visible {
  outline: 3px solid rgba(37, 95, 75, 0.35);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Runs left-to-right above the "Showing N of N resources" text (never over
   it), then turns and drops straight down past the end of the text before
   looping. The drop is anchored to the link's right edge as an approximation
   of the trailing "s" in "resources" - exact glyph position isn't knowable
   from CSS alone, so nudge the "calc(100% - Npx)" values here if the text
   length in practice puts the "s" somewhere else. */
@keyframes horseDash {
  0% {
    left: 8px;
    top: 0;
    opacity: 0;
    transform: rotate(-8deg) scaleX(1);
  }
  6% {
    opacity: 1;
  }
  16% {
    left: 36%;
    top: -8px;
    transform: rotate(4deg) scaleX(1);
  }
  40% {
    left: calc(100% - 58px);
    top: 0;
    transform: rotate(6deg) scaleX(1);
  }
  54% {
    left: calc(100% - 30px);
    top: 2px;
    transform: rotate(92deg) scaleX(-1);
  }
  80% {
    left: calc(100% - 30px);
    top: 40px;
    opacity: 1;
    transform: rotate(96deg) scaleX(-1);
  }
  96% {
    opacity: 0;
  }
  100% {
    left: 8px;
    top: 0;
    opacity: 0;
    transform: rotate(-8deg) scaleX(1);
  }
}

/* Tied to the same 0-54% window as horseDash's run (not its drop). The
   scaleX(-1) at 54% cancels the parent's flip at that instant so the "click
   here" text stays readable (not mirrored) through the turn, then fades out
   before the vertical drop starts. */
@keyframes dustMessage {
  0%,
  10% {
    opacity: 0;
    transform: rotate(-8deg) scaleX(1) translateX(0) scale(0.86);
  }
  24%,
  40% {
    opacity: 1;
    transform: rotate(-8deg) scaleX(1) translateX(-10px) scale(1);
  }
  54% {
    opacity: 1;
    transform: rotate(-8deg) scaleX(-1) translateX(-10px) scale(1);
  }
  64%,
  100% {
    opacity: 0;
    transform: rotate(-8deg) scaleX(-1) translateX(-16px) scale(0.9);
  }
}

@keyframes resourceSFlip {
  0%,
  42% {
    transform: rotate(0deg) translateY(0);
  }
  55%,
  70% {
    transform: rotate(72deg) translateY(5px);
  }
  88%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
}

.product-grid,
.category-grid,
.feature-grid,
.metric-grid,
.plan-grid,
.retail-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-grid,
.feature-grid,
.plan-grid,
.retail-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
}

.product-media,
.feature-card img,
.info-card img {
  height: 190px;
  overflow: hidden;
  background: var(--panel);
}

.product-media img,
.feature-card img,
.info-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-copy,
.feature-card,
.metric-card,
.info-card__body,
.plan-card,
.panel,
.retail-card {
  padding: 18px;
}

.feature-card h3,
.metric-card h3,
.info-card h3,
.plan-card h3,
.product-card h3,
.retail-card h3 {
  margin: 8px 0;
  font-size: 1.18rem;
}

.feature-card p,
.metric-card p,
.info-card p,
.plan-card p,
.product-card p,
.panel p,
.retail-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.retail-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.retail-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.retail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.retail-card span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.retail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.retail-spec-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.retail-spec-list div {
  display: grid;
  grid-template-columns: minmax(110px, 0.42fr) 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.retail-spec-list dt {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.retail-spec-list dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.feature-card img,
.info-card img {
  margin: -18px -18px 18px;
  width: calc(100% + 36px);
  max-width: none;
}

.dark-band {
  color: var(--white);
  background: var(--green-dark);
}

.dark-band .section-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.dark-band p,
.dark-band .feature-card p {
  color: rgba(255, 255, 255, 0.74);
}

.dark-band .feature-card {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.dark-band .eyebrow,
.dark-band .feature-card span {
  color: #f3d177;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  align-items: start;
}

.panel h2 {
  margin-top: 0;
}

.check-list,
.timeline {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.check-list li,
.timeline li {
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}

.check-list li::before,
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.notice {
  padding: 16px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff8e5;
  color: #5a4720;
  line-height: 1.55;
}

.meta-grid,
.blog-grid,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.meta-list,
.legal-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.meta-list li,
.legal-list li {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.45;
}

.meta-list strong,
.legal-list strong {
  color: var(--ink);
}

.blog-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.blog-card time,
.blog-card span,
.legal-kicker {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-card h3,
.legal-section h2 {
  margin: 0;
}

.blog-card p,
.legal-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.resource-search {
  margin-bottom: 14px;
}

.resource-search input {
  width: 100%;
  max-width: 420px;
}

.filter-bar {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-group__label {
  margin-right: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-pill {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-pill.is-active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resource-card.is-hidden {
  display: none;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  width: fit-content;
  border-radius: 999px;
  background: #fff8e5;
  color: #5a4720;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.forum-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.forum-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.forum-signon-preview {
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 240px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--white);
}

.forum-signon-preview input {
  width: 100%;
}

.forum-signon-preview button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 800;
  cursor: not-allowed;
}

.forum-signon-preview__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.legal-section {
  display: grid;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.legal-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.legal-prose {
  max-width: 900px;
}

.panel-stack {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.status-field {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--white);
}

textarea.status-field {
  min-height: 90px;
  padding: 10px 14px;
  resize: vertical;
}

.contact-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.contact-actions .primary-button,
.contact-actions .secondary-button {
  min-height: 46px;
}

.contact-account-cta {
  display: none;
  white-space: nowrap;
}

.contact-account-cta.is-visible {
  display: inline-flex;
}

/* Intake portal (website/portal.html -> POST /api/portal/intake). */
.portal-fieldset {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
}

.portal-fieldset legend {
  font-weight: 850;
  padding: 0;
  margin-bottom: 2px;
}

.portal-checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px 16px;
}

.portal-checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--ink);
}

.portal-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.portal-status {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.portal-status.is-visible {
  display: block;
}

.portal-status.is-loading {
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
}

.portal-status.is-success {
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid rgba(47, 111, 94, 0.25);
}

.portal-status.is-error {
  color: #8f3525;
  background: #fdeceb;
  border: 1px solid rgba(178, 75, 53, 0.25);
}

.newsletter {
  padding: 36px 0;
  color: var(--white);
  background: var(--green);
}

.newsletter .section-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  gap: 24px;
  align-items: center;
}

.newsletter h2 {
  margin: 0;
}

.email-form {
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
}

.email-form input {
  min-width: 0;
  border: 0;
  padding: 0 16px;
  outline: none;
}

.email-form button {
  border: 0;
  padding: 0 18px;
  color: var(--white);
  background: var(--ink);
  font-weight: 850;
}

footer {
  padding: 34px 0;
  background: #101713;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner strong {
  color: var(--white);
}

.footer-brand {
  display: grid;
  gap: 4px;
}

.footer-links,
.footer-social {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a,
.footer-social a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 760;
}

.footer-social span[aria-disabled="true"] {
  color: rgba(255, 255, 255, 0.42);
  cursor: not-allowed;
}

@media (max-width: 940px) {
  .nav-actions {
    display: none;
  }

  .nav {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 0;
  }

  .search {
    grid-column: 1 / -1;
  }

  .page-hero__inner,
  .dark-band .section-inner,
  .split,
  .newsletter .section-inner,
  .forum-panel {
    grid-template-columns: 1fr;
  }

  .forum-panel__actions {
    justify-content: flex-start;
  }

  .product-grid,
  .category-grid,
  .feature-grid,
  .metric-grid,
  .plan-grid,
  .retail-card-grid,
  .meta-grid,
  .blog-grid,
  .legal-grid,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav,
  .menu-row__inner,
  .section-inner,
  .page-hero__inner,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 1.12rem;
  }

  .page-hero__inner {
    min-height: auto;
    padding: 36px 0;
  }

  .product-grid,
  .category-grid,
  .feature-grid,
  .metric-grid,
  .plan-grid,
  .retail-card-grid,
  .meta-grid,
  .blog-grid,
  .legal-grid,
  .resource-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .meta-list li,
  .legal-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .retail-spec-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .section-heading,
  .footer-inner {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

  .resource-count-link {
    width: fit-content;
    max-width: 100%;
    padding-left: 78px;
  }

  .pill-row,
  .footer-links,
  .footer-social,
  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .email-form {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .email-form input,
  .email-form button {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cartoon-horse,
  .cartoon-horse__dust,
  .resource-count__s {
    animation: none;
  }

  .cartoon-horse__dust {
    opacity: 1;
    transform: rotate(-8deg) scale(1);
  }
}
