.local-page {
  background: var(--paper);
  color: var(--forest);
}

.local-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 44px);
}

.local-top .lockup .wm {
  color: var(--paper);
}

.local-top .lockup img {
  filter: brightness(0) invert(1);
}

.local-top-link {
  color: rgba(245, 242, 234, 0.86);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.local-hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--forest-deep);
}

body.has-readout .local-hero {
  display: none;
}

body.has-readout .local-top {
  position: static;
  background: var(--paper);
}

body.has-readout .local-top .lockup .wm {
  color: var(--forest);
}

body.has-readout .local-top .lockup img {
  filter: none;
}

body.has-readout .local-top-link {
  color: var(--forest);
}

.local-photo {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(15, 38, 24, 0.05), rgba(15, 38, 24, 0.62)),
    url("assets/photo-meadow.jpg");
  background-size: cover;
  background-position: center 42%;
}

.local-hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  padding: 110px clamp(18px, 5vw, 44px) 34px;
  color: var(--paper);
}

.local-hero-copy h1 {
  color: var(--paper);
  font-size: clamp(38px, 13vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.local-lede {
  color: rgba(245, 242, 234, 0.88);
  font-size: 17px;
  line-height: 1.5;
  margin-top: 18px;
}

.local-form {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.local-form label {
  display: grid;
  gap: 7px;
}

.local-form label span {
  color: rgba(245, 242, 234, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.local-form input {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(245, 242, 234, 0.34);
  border-radius: 16px;
  background: rgba(250, 248, 243, 0.94);
  color: var(--forest);
  font: inherit;
  font-size: 18px;
  padding: 0 16px;
  box-shadow: 0 12px 32px rgba(15, 38, 24, 0.18);
}

.local-form input::placeholder {
  color: var(--muted-soft);
}

.local-form .btn {
  width: 100%;
  min-height: 58px;
  margin-top: 2px;
  border-radius: 16px;
}

.local-status {
  min-height: 22px;
  color: rgba(245, 242, 234, 0.86);
  font-size: 14px;
}

.local-status[data-state="error"] {
  color: #f0a090;
}

body.has-readout .local-result {
  display: block;
  min-height: calc(100svh - 70px);
}

.local-result-shell {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 24px clamp(16px, 5vw, 28px);
}

.local-result-shell h2 {
  font-size: clamp(34px, 11vw, 52px);
  line-height: 1;
}

.readout-note {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.readout-note p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.42;
}

.download-panel {
  margin-top: 20px;
  border-radius: 16px;
  background: var(--forest-deep);
  color: var(--paper);
  padding: 14px;
}

.download-panel p {
  color: rgba(245, 242, 234, 0.88);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
}

.download-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.download-badge {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(245, 242, 234, 0.24);
  border-radius: 12px;
  background: rgba(245, 242, 234, 0.08);
  color: var(--paper);
  padding: 9px 10px;
  text-decoration: none;
}

.download-badge svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: none;
}

.download-badge span {
  display: grid;
  gap: 2px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.download-badge small {
  color: rgba(245, 242, 234, 0.72);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.local-footer {
  display: grid;
  gap: 12px;
  justify-items: start;
  background: var(--forest-deep);
  padding: 30px clamp(18px, 5vw, 44px);
}

.local-footer p {
  color: rgba(245, 242, 234, 0.76);
  font-size: 14px;
}

@media (min-width: 720px) {
  .local-hero {
    min-height: 760px;
    align-items: center;
  }

  .local-photo {
    background-image:
      linear-gradient(90deg, rgba(15, 38, 24, 0.66), rgba(15, 38, 24, 0.34), rgba(15, 38, 24, 0.08)),
      url("assets/photo-meadow.jpg");
  }

  .local-hero-copy {
    padding-bottom: 80px;
  }

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

  .local-form .btn,
  .local-status {
    grid-column: 1 / -1;
  }

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

@media (min-width: 980px) {
  .local-result-shell {
    padding-block: 36px;
  }
}

.local-footer a:not(.lockup) {
  color: rgba(245, 242, 234, 0.88);
  text-underline-offset: 3px;
}
