:root {
  --blue: #28a9e8;
  --blue-dark: #147db0;
  --text: #666666;
  --muted: #969696;
  --line: #d8e6ed;
  --page: #ffffff;
  --panel: #f7fbfd;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
}

.site-header {
  min-height: 82px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 6px 40px 8px 24px;
  background: var(--blue);
}

.brand {
  width: 170px;
  color: #ffffff;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 47px;
  margin-left: 2px;
  object-fit: contain;
}

.brand-name {
  display: block;
  margin-top: -2px;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.brand-tagline {
  display: block;
  width: max-content;
  margin-top: 5px;
  transform: translateX(-29px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 8px;
  line-height: 1;
  white-space: nowrap;
}

.main-nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 21px;
  color: #111111;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a {
  color: #ffffff;
  text-decoration: none;
}

.main-nav a:focus-visible,
.contact-band a:focus-visible,
.button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.intro,
.content-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 38px 24px 52px;
  text-align: center;
}

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

h1 {
  margin: 0 0 13px;
  color: #646464;
  font-size: 21px;
  line-height: 0.98;
  font-weight: 800;
}

.supporting,
.goal {
  margin: 0;
  font-size: 13px;
}

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

.goal {
  margin-top: 2px;
  color: #666666;
  font-weight: 700;
}

.process-image {
  display: block;
  width: min(481px, 100%);
  height: auto;
  margin-top: 14px;
}

.contact-band {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 83px;
  background: var(--blue);
}

.contact-band a {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.content-page {
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: left;
}

.content-page > .intro-copy {
  width: 100%;
  text-align: center;
}

.contact-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 34px;
  align-items: start;
  margin-top: 26px;
}

.contact-form-panel,
.install-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
}

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

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

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: #555555;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #cbdde5;
  border-radius: 6px;
  padding: 11px 12px;
  color: #444444;
  font: inherit;
  background: #ffffff;
}

.field textarea {
  resize: vertical;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 10px 18px;
  color: #ffffff;
  background: var(--blue);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--blue-dark);
}

.button.secondary {
  border: 1px solid var(--blue);
  color: var(--blue-dark);
  background: #ffffff;
}

.button.secondary:hover {
  color: #ffffff;
  background: var(--blue-dark);
}

.contact-details {
  display: grid;
  gap: 12px;
}

.contact-details iframe {
  width: 100%;
  max-width: 425px;
  border: 0;
}

.contact-details a {
  color: var(--blue-dark);
}

.contact-details address {
  margin-top: 10px;
  font-style: normal;
}

.flash,
.form-errors {
  width: 100%;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14px;
}

.flash.notice {
  border: 1px solid #b8dfc4;
  background: #effaf2;
  color: #245d35;
}

.flash.alert,
.form-errors {
  border: 1px solid #e5bbbb;
  background: #fff3f3;
  color: #733333;
}

.form-errors p {
  margin: 0 0 8px;
  font-weight: 700;
}

.form-errors ul {
  margin: 0;
  padding-left: 20px;
}

.install-page {
  align-items: stretch;
  text-align: left;
}

.install-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: left;
}

.install-logo {
  width: 58px;
  height: auto;
}

.install-header p {
  margin: 0;
  font-weight: 700;
}

.install-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 20px;
}

.install-disclaimer {
  width: min(100%, 620px);
  margin: 0;
  color: #555555;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.install-guide {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.guide-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
}

.guide-section h2 {
  margin: 0 0 12px;
  color: #555555;
  font-size: 18px;
  line-height: 1.2;
}

.guide-section p {
  margin: 0 0 12px;
}

.guide-section p:last-child {
  margin: 0;
}

.guide-section a {
  color: var(--blue-dark);
}

.guide-steps {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 24px;
}

.guide-steps li::marker {
  color: var(--blue-dark);
  font-weight: 800;
}

.qr-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(100%, 360px);
  margin: 18px auto;
  text-align: center;
}

.qr-panel img {
  width: min(100%, 280px);
  height: auto;
  background: #ffffff;
}

figure {
  margin: 0;
}

figcaption {
  color: #666666;
  font-size: 13px;
  line-height: 1.35;
}

.settings-visuals {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.settings-visuals figure {
  display: grid;
  gap: 8px;
}

.settings-visuals img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
}

@media (max-width: 760px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .settings-visuals {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: center;
    padding: 10px 18px 14px;
  }

  .brand {
    width: 110px;
  }

  .brand-tagline {
    transform: none;
    white-space: normal;
  }

  .main-nav {
    min-height: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 12px;
  }

  .intro,
  .content-page {
    padding: 34px 18px 44px;
  }

  h1 {
    font-size: 20px;
    line-height: 1.08;
  }

  .supporting,
  .goal {
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .brand {
    display: flex;
    width: auto;
    flex-direction: column;
    align-items: center;
  }

  .main-nav {
    justify-content: center;
  }

  .install-header {
    flex-direction: column;
    text-align: center;
  }
}
