:root {
  --paper: #fcfaf5;
  --ink: #2e2e2c;
  --green: #3b6b5e;
  --muted: #68645d;
  --line: #ded8c9;
  --soft: #f3efe5;
  --white: #fffdf8;
  --shadow: 0 18px 44px rgba(46, 46, 44, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 250, 245, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  min-width: 0;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex: 0 0 auto;
  display: block;
}

.brand-name {
  max-width: 360px;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.site-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-link,
.dropdown-menu a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-link:hover,
.dropdown-menu a:hover,
.nav-link:focus-visible,
.dropdown-menu a:focus-visible {
  background: var(--soft);
  outline: none;
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  margin-top: -4px;
  margin-left: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.dropdown-toggle[aria-expanded="true"]::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  padding: 8px;
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  display: grid;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 82px;
  min-width: 82px;
  min-height: 44px;
  padding: 9px 14px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-toggle > span {
  display: none;
}

.nav-toggle::before {
  content: "Menu";
}

.nav-toggle::after {
  content: "";
  width: 0.52em;
  height: 0.52em;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

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

main {
  width: 100%;
}

.hero,
.section,
.call-band,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 68px 0 56px;
}

.home-hero {
  min-height: 58vh;
  display: grid;
  align-content: center;
  border-bottom: 1px solid var(--line);
}

.compact-hero {
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  font-size: 48px;
  line-height: 1;
}

h2 {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.08;
}

h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

.lede {
  max-width: 760px;
  color: var(--ink);
  font-size: 18px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: var(--paper);
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
}

.button-light {
  background: transparent;
  color: var(--green);
}

.section {
  padding: 58px 0;
  border-bottom: 1px solid var(--line);
}

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

.card-grid,
.beacon-grid,
.detail-grid {
  display: grid;
  gap: 16px;
}

.card-grid,
.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card,
.beacon-card,
.detail,
.panel-form,
.faq details {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card p,
.beacon-card p,
.detail p {
  margin-bottom: 18px;
}

.detail ul,
.market-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.detail li + li,
.market-list li + li {
  margin-top: 6px;
}

.text-link {
  color: var(--green);
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: start;
}

.link-wrap {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-wrap a,
.pill,
.meta-list span,
.meta-list a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  text-decoration: none;
}

.link-wrap a:hover {
  border-color: var(--green);
  color: var(--green);
}

.call-band {
  padding: 34px 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.call-band h2 {
  max-width: 620px;
}

.filter-row {
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
}

.filter-button.active,
.filter-button:hover {
  border-color: var(--green);
  background: var(--green);
  color: var(--paper);
}

.card-top,
.meta-list {
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.beacon-card[hidden] {
  display: none;
}

.form-section {
  max-width: 960px;
}

.panel-form {
  padding: 28px;
  display: grid;
  gap: 24px;
}

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

label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
}

input,
select,
textarea {
  max-width: 100%;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--green);
  background: transparent;
}

input[type="radio"] {
  border-radius: 999px;
}

textarea {
  resize: vertical;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

fieldset:first-of-type {
  border-top: 0;
}

legend {
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  display: block;
  float: none;
  color: var(--green);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

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

.check-grid label {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  line-height: 1.25;
}

.check-grid input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin-top: 1px;
  flex: 0 0 auto;
}

.category-options,
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.category-option,
.market-group,
.inline-note {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.category-option {
  position: relative;
  display: block;
  min-height: 138px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.category-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.category-option span {
  display: block;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.category-option small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.category-option::after {
  content: "Select";
  position: absolute;
  right: 16px;
  bottom: 16px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.category-option:focus-within,
.category-option.active {
  border-color: var(--green);
  background: #f8f3e8;
  box-shadow: 0 0 0 3px rgba(59, 107, 94, 0.12);
}

.category-option.active::after {
  content: "Selected";
  border-color: var(--green);
  background: var(--green);
  color: var(--paper);
}

.conditional-panel[hidden] {
  display: none;
}

.market-group h3 {
  margin-bottom: 12px;
}

.inline-note p:last-child {
  margin-bottom: 0;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq summary {
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  font-weight: 600;
}

.faq p {
  margin-bottom: 0;
}

.readable {
  max-width: 780px;
}

.readable h2 {
  margin-top: 28px;
}

.site-footer {
  padding: 34px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.footer-identity {
  max-width: 560px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.footer-brand {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
}

.mobile-footer-bar {
  display: none;
}

@media (min-width: 760px) {
  html {
    font-size: 18px;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 40px;
  }

  h3 {
    font-size: 22px;
  }

  .button {
    font-size: 16px;
  }
}

@media (min-width: 1040px) {
  h1 {
    font-size: 68px;
  }

  h2 {
    font-size: 44px;
  }

  h3 {
    font-size: 24px;
  }
}

@media (max-width: 980px) {
  body.nav-open {
    overflow: hidden;
  }

  .nav-shell {
    min-height: 68px;
    position: relative;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    max-width: min(260px, calc(100vw - 170px));
    font-size: 14px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    right: 16px;
    left: 16px;
    z-index: 110;
    max-height: calc(100dvh - 96px);
    padding: 8px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    overflow: auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav .nav-link,
  .site-nav .dropdown-menu a {
    min-height: 46px;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    border-radius: 10px;
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
    display: none;
    gap: 2px;
    padding: 6px;
    background: var(--soft);
    border-radius: 10px;
    box-shadow: none;
  }

  .dropdown-menu a {
    width: 100%;
    border-radius: 8px;
    background: var(--white);
  }

  .nav-dropdown:hover .dropdown-menu {
    display: none;
  }

  .nav-dropdown.open .dropdown-menu,
  .nav-dropdown.open:hover .dropdown-menu {
    display: grid;
  }

  .form-section {
    max-width: 760px;
  }

  .card-grid,
  .beacon-grid,
  .detail-grid,
  .category-options,
  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .hero,
  .section,
  .call-band,
  .site-footer,
  .nav-shell {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .section {
    padding: 38px 0;
  }

  .home-hero {
    min-height: auto;
  }

  h1 {
    font-size: 40px;
    line-height: 1.04;
  }

  h2 {
    font-size: 28px;
    line-height: 1.12;
  }

  h3 {
    font-size: 20px;
  }

  .lede {
    font-size: 17px;
  }

  .brand-name {
    max-width: min(190px, calc(100vw - 148px));
    font-size: 13px;
  }

  .nav-toggle {
    width: 78px;
    min-width: 78px;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .site-nav {
    top: 70px;
    right: 12px;
    left: 12px;
    max-height: calc(100dvh - 90px);
    border-radius: 12px;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .beacon-grid,
  .detail-grid,
  .category-options,
  .market-grid,
  .form-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .beacon-card,
  .detail,
  .faq details {
    padding: 18px;
  }

  .panel-form {
    padding: 18px;
    gap: 20px;
  }

  fieldset {
    padding: 0;
  }

  .category-option,
  .market-group,
  .inline-note {
    padding: 15px;
  }

  .category-option {
    min-height: 126px;
  }

  .category-option::after {
    right: 14px;
    bottom: 14px;
  }

  .section-head,
  .call-band,
  .site-footer {
    display: grid;
    align-items: start;
  }

  .footer-identity {
    display: grid;
    gap: 12px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }

  .link-wrap a,
  .pill,
  .meta-list span,
  .meta-list a {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  html {
    font-size: 16px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 25px;
  }

  .brand-name {
    max-width: calc(100vw - 132px);
  }

  .nav-shell {
    gap: 12px;
  }

  .panel-form {
    gap: 14px;
  }
}

@media (max-width: 640px) and (pointer: coarse), (max-width: 640px) and (hover: none) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-footer-bar {
    position: fixed;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    z-index: 90;
    min-height: 58px;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    background: rgba(46, 46, 44, 0.96);
    border: 1px solid rgba(252, 250, 245, 0.18);
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(46, 46, 44, 0.24);
    backdrop-filter: blur(12px);
  }

  .mobile-footer-bar a {
    min-width: 0;
    min-height: 46px;
    display: grid;
    place-items: center;
    color: var(--paper);
    border-radius: 999px;
    font-family: Inter, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
  }

  .mobile-footer-bar a:nth-child(2) {
    background: var(--green);
  }
}
