:root {
  --ink: #151a1f;
  --muted: #5e6872;
  --paper: #fbfaf7;
  --panel: rgba(255, 255, 252, 0.94);
  --line: rgba(21, 26, 31, 0.14);
  --green: #20724f;
  --green-deep: #123f31;
  --blue: #2c6f9d;
  --steel: #354759;
  --coral: #b85f48;
  --amber: #b98a2f;
  --shadow: 0 24px 70px rgba(17, 24, 29, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
.anchor-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.78;
}

button svg,
.anchor-action svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.landing-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.hero-section {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  padding: 18px;
  color: #ffffff;
  background: #9fc4cc;
}

.map-surface {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #9fc4cc url("assets/florida-aam-map.png") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 410;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 18, 22, 0.83) 0%, rgba(12, 18, 22, 0.58) 42%, rgba(12, 18, 22, 0.18) 72%),
    linear-gradient(180deg, rgba(12, 18, 22, 0.42), rgba(12, 18, 22, 0.08) 44%, rgba(12, 18, 22, 0.45));
}

.leaflet-control-attribution {
  display: none;
}

.topbar,
.hero-grid {
  position: relative;
  z-index: 500;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.brand-mark,
.registry-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 850;
}

.brand-mark {
  gap: 10px;
}

.brand-mark span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--green-deep);
  background: #ffffff;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 950;
}

.registry-link {
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  backdrop-filter: blur(12px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  width: min(1240px, 100%);
  min-height: calc(92vh - 80px);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 84px) 0 24px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.market-rail .eyebrow {
  color: #9fd8b8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 6.8vw, 5.45rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.15;
}

.hero-lede {
  max-width: 720px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.48;
}

.hero-actions,
.registry-actions,
.form-actions {
  display: flex;
  gap: 10px;
}

.primary-action,
.secondary-action {
  min-height: 46px;
  padding: 0 16px;
  font-weight: 880;
  text-decoration: none;
}

.primary-action {
  flex: 1;
  color: #ffffff;
  background: var(--green);
}

.primary-action:hover {
  background: var(--green-deep);
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.hero-actions .secondary-action {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin-top: 26px;
}

.hero-stats article {
  min-height: 96px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 1.6rem;
  line-height: 1;
}

.hero-stats span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 750;
}

.market-rail {
  width: 100%;
  max-height: calc(92vh - 118px);
  overflow: auto;
  padding: 16px;
  color: #ffffff;
  background: rgba(16, 26, 31, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.rail-header,
.market-row,
.metric-row,
.result-panel {
  display: flex;
  gap: 14px;
}

.rail-header,
.market-row,
.result-panel {
  align-items: flex-start;
  justify-content: space-between;
}

.rail-header h2 {
  color: #ffffff;
  font-size: 1.12rem;
  line-height: 1.15;
}

.icon-button {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.market-row {
  width: 100%;
  min-height: 68px;
  padding: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  text-align: left;
}

.market-row:hover,
.market-row.active {
  border-color: rgba(157, 216, 184, 0.7);
  box-shadow: 0 0 0 4px rgba(157, 216, 184, 0.12);
}

.market-row strong,
.market-row span {
  display: block;
}

.market-row strong {
  font-size: 0.95rem;
}

.market-row span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.35;
}

.market-score {
  flex: 0 0 auto;
  min-width: 48px;
  padding: 7px 8px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 950;
  text-align: center;
}

.content-band,
.conversion-section {
  padding: clamp(58px, 9vw, 110px) 18px;
}

.definition-band {
  background: var(--paper);
}

.signals-band {
  background: #eef3f1;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: end;
  width: min(1180px, 100%);
  margin: 0 auto 28px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.compact-heading {
  display: block;
}

.definition-grid,
.signal-grid {
  display: grid;
  gap: 12px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

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

.definition-grid article,
.signal-card,
.funnel-panel,
.readiness-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(17, 24, 29, 0.08);
}

.definition-grid article {
  min-height: 220px;
  padding: 20px;
}

.definition-grid svg {
  width: 28px;
  height: 28px;
  margin-bottom: 22px;
  color: var(--blue);
}

.definition-grid p,
.signal-card p,
.form-kicker p,
.result-panel p,
.notice {
  color: var(--muted);
  line-height: 1.48;
}

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

.signal-card {
  min-height: 230px;
  padding: 20px;
  color: var(--ink);
  text-decoration: none;
}

.signal-card:hover {
  border-color: rgba(44, 111, 157, 0.48);
  box-shadow: 0 0 0 4px rgba(44, 111, 157, 0.1);
}

.feature-signal {
  grid-column: span 2;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(18, 63, 49, 0.9), rgba(44, 111, 157, 0.9)),
    url("assets/florida-aam-map.png") center / cover no-repeat;
}

.signal-card span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 28px;
  padding: 0 10px;
  color: var(--green-deep);
  background: #e7f3ea;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.feature-signal span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.feature-signal p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
}

.conversion-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.64fr);
  gap: 18px;
  align-items: start;
  width: min(1180px, 100%);
  margin: 0 auto;
  background: var(--paper);
}

.funnel-panel,
.readiness-panel {
  padding: 22px;
}

.form-kicker {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(240px, 0.55fr);
  gap: 18px;
  margin-bottom: 20px;
}

.form-kicker h2 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
}

.form-kicker p {
  align-self: end;
  margin-bottom: 0;
}

.site-form {
  display: grid;
  gap: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 12px;
}

label,
legend {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

input,
select {
  width: 100%;
  min-height: 43px;
  margin-top: 7px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(44, 111, 157, 0.7);
  box-shadow: 0 0 0 4px rgba(44, 111, 157, 0.13);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented-control,
.check-grid {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.segmented-control {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.segmented-control label,
.check-grid label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.8rem;
  text-align: center;
  cursor: pointer;
}

.segmented-control label:has(input:checked),
.check-grid label:has(input:checked) {
  color: #ffffff;
  background: var(--green-deep);
  border-color: var(--green-deep);
}

.segmented-control input,
.check-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.metric-row {
  align-items: stretch;
}

.metric-row label {
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.metric-row span {
  float: right;
  color: var(--ink);
}

input[type="range"] {
  min-height: 28px;
  padding: 0;
  accent-color: var(--blue);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.readiness-panel {
  position: sticky;
  top: 18px;
}

.result-panel {
  flex-wrap: wrap;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.result-panel h2 {
  font-size: 1.5rem;
}

.score-ring {
  display: grid;
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  color: var(--green-deep);
  background: conic-gradient(var(--green) 72%, #dfe6df 0);
  font-size: 1.35rem;
  font-weight: 950;
}

.score-ring span {
  display: grid;
  width: 61px;
  height: 61px;
  place-items: center;
  background: var(--paper);
  border-radius: 50%;
}

.report-lines {
  display: grid;
  flex-basis: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.report-line {
  min-height: 52px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.report-line strong {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
}

.notice {
  margin-top: 18px;
  padding: 14px;
  color: #443715;
  background: rgba(255, 244, 213, 0.9);
  border: 1px solid rgba(184, 138, 47, 0.32);
  border-radius: 8px;
  font-size: 0.8rem;
}

.notice strong {
  display: block;
  margin-bottom: 3px;
  color: #2b2110;
}

.site-marker {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: var(--coral);
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(23, 33, 28, 0.28);
  font-weight: 950;
}

.leaflet-interactive {
  cursor: pointer;
}

.registry-body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(251, 250, 245, 0.9), rgba(251, 250, 245, 0.96)),
    url("assets/florida-aam-map.png") center / cover fixed no-repeat;
}

.registry-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.registry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.registry-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.registry-actions {
  flex: 0 0 auto;
}

.compact-action {
  flex: 0 0 auto;
  padding: 0 16px;
}

.registry-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.registry-stats article,
.registry-table-wrap {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(12, 22, 18, 0.12);
}

.registry-stats article {
  padding: 16px;
}

.registry-stats strong,
.registry-stats span {
  display: block;
}

.registry-stats strong {
  font-size: 1.65rem;
  line-height: 1;
}

.registry-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.registry-table-wrap {
  position: relative;
  overflow: auto;
  margin-top: 14px;
}

.registry-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.registry-table th,
.registry-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.registry-table th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.registry-table td {
  font-size: 0.88rem;
}

.registry-table td span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.registry-table a {
  color: var(--blue);
  font-weight: 850;
}

.registry-score {
  display: inline-grid;
  width: 40px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: var(--green);
  border-radius: 6px;
  font-weight: 950;
}

.registry-empty {
  padding: 24px;
  color: var(--muted);
  font-weight: 850;
}

@media (max-width: 1120px) {
  .hero-grid,
  .conversion-section {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: start;
  }

  .market-rail,
  .readiness-panel {
    position: relative;
    top: auto;
    max-height: none;
  }

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

@media (max-width: 760px) {
  .hero-section {
    padding: 12px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .registry-link {
    width: 100%;
  }

  .hero-grid {
    min-height: auto;
    padding: 40px 0 12px;
  }

  .content-band,
  .conversion-section {
    padding: 54px 18px;
  }

  h1 {
    font-size: 3.05rem;
  }

  .hero-actions,
  .hero-stats,
  .section-heading,
  .definition-grid,
  .signal-grid,
  .field-grid,
  .segmented-control,
  .check-grid,
  .report-lines,
  .form-kicker,
  .registry-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .metric-row,
  .form-actions,
  .result-panel,
  .registry-header,
  .registry-actions {
    flex-direction: column;
  }

  .anchor-action,
  .registry-actions,
  .registry-actions a,
  .registry-actions button {
    width: 100%;
  }

  .feature-signal {
    grid-column: span 1;
  }

  .definition-grid article,
  .signal-card {
    min-height: auto;
  }
}
