/* Reference footer: app promotion with an overlapping, rounded link panel. */
.site-footer.footer-reference {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0 0 48px;
  color: var(--ink);
  background: transparent;
}
.footer-reference .footer-shell {
  position: relative;
  max-width: 1320px;
  width: calc(100% - 96px);
}
.footer-app-promo {
  position: relative;
  min-height: 350px;
  padding: 48px 16px 64px;
  overflow: clip;
}
.footer-app-copy {
  position: relative;
  z-index: 1;
  max-width: 62%;
}
.footer-app-heading {
  display: flex;
  align-items: center;
  gap: 22px;
}
.footer-app-icon {
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 24px;
  box-shadow: 0 0 0 1px #00685f1a;
}
.footer-app-heading h2 {
  margin: 0;
  color: #073f39;
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.14;
}
.footer-app-heading p {
  margin: 9px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.4;
}
.footer-download-prompt {
  margin: 30px 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #073f39;
}
.footer-store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-store-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  min-width: 166px;
  padding: 10px 20px;
  border: 1px solid #303b36;
  border-radius: 10px;
  color: #fff;
  background: #191e1b;
  text-align: left;
  transition:
    transform 180ms,
    background 180ms;
}
.footer-store-button:hover {
  transform: translateY(-2px);
  background: #073f39;
}
.footer-store-button svg {
  width: 29px;
  height: 29px;
}
.footer-store-button span {
  display: grid;
  gap: 2px;
}
.footer-store-button small {
  color: #e3e8e5;
  font-size: 0.625rem;
  line-height: 1.2;
}
.footer-store-button strong {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
}
.footer-phone {
  position: absolute;
  top: 44px;
  right: 40px;
  width: 278px;
  padding: 12px 10px 10px;
  border: 6px solid #192b26;
  border-radius: 44px;
  background: #fff;
  box-shadow: 0 22px 65px #073f3917;
}
.footer-phone-camera {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 21px;
  border-radius: 20px;
  background: #192b26;
}
.footer-phone-screen {
  padding: 48px 8px 110px;
  overflow: hidden;
  border-radius: 30px;
  background: #f7f9f6;
}
.footer-phone-screen img {
  border-radius: 12px;
  width: 100%;
  height: auto;
}
.footer-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 1.1fr 1.25fr;
  gap: 42px;
  padding: 54px 56px 48px;
  border-radius: 36px;
  background: #073f39;
  color: #eef4e6;
  box-shadow: 0 16px 48px #17352f0c;
}
.footer-panel > * {
  min-width: 0;
}
.footer-reference .footer-panel .brand {
  display: inline-flex;
  width: fit-content;
  color: #eef4e6;
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
  letter-spacing: -0.055em;
  line-height: 1.15;
}
.footer-reference .footer-panel .brand-dot {
  color: #ddf48a;
}
.footer-tagline {
  margin: 10px 0 28px;
  color: #c2d6cb;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.footer-reference .footer-socials {
  gap: 11px;
}
.footer-reference .footer-social-icon {
  width: 36px;
  height: 36px;
  border: 1px solid #92b3a7;
  border-radius: 0;
  color: #eef4e6;
  background: transparent;
}
.footer-reference .footer-social-icon svg {
  width: 17px;
  height: 17px;
}
.footer-copyright {
  margin: 52px 0 0;
  color: #d9e6dd;
  font-size: 0.6875rem;
  line-height: 1.5;
}
.footer-panel h2 {
  margin: 3px 0 18px;
  color: #eef4e6;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
}
.footer-link-column a {
  display: block;
  width: fit-content;
  min-height: 44px;
  padding: 10px 0;
  color: #c2d6cb;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.footer-link-column a:hover {
  color: #ddf48a;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.footer-reference :is(a, button):focus-visible {
  outline: 2px solid #ddf48a;
  outline-offset: 5px;
}
.footer-store-button:focus-visible {
  outline-color: #00685f;
}
.footer-contact-column {
  display: grid;
  align-content: start;
  gap: 24px;
}
.footer-contact-column h2 {
  margin-bottom: 10px;
}
.footer-contact-column p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #c2d6cb;
  font-size: 0.875rem;
  line-height: 1.6;
}
@media (min-width: 1600px) {
  .footer-app-promo {
    min-height: 380px;
  }
  .footer-phone {
    width: 310px;
  }
}
@media (max-width: 1100px) {
  .footer-reference .footer-shell {
    width: calc(100% - 64px);
  }
  .footer-panel {
    gap: 24px;
    padding: 40px 32px;
  }
  .footer-phone {
    right: 22px;
    width: 250px;
  }
  .footer-app-copy {
    max-width: 58%;
  }
  .footer-app-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }
  .footer-app-heading {
    gap: 16px;
  }
}
@media (max-width: 800px) {
  .footer-reference .footer-shell {
    width: calc(100% - 40px);
  }
  .footer-app-promo {
    min-height: 340px;
    padding: 36px 10px 48px;
  }
  .footer-app-copy {
    max-width: 60%;
  }
  .footer-app-heading {
    align-items: flex-start;
  }
  .footer-app-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
  .footer-app-heading h2 {
    font-size: 1.5rem;
  }
  .footer-app-heading p {
    font-size: 0.875rem;
  }
  .footer-download-prompt {
    font-size: 0.875rem;
  }
  .footer-store-button {
    min-width: 142px;
    padding-inline: 12px;
  }
  .footer-phone {
    top: 40px;
    right: 8px;
    width: 218px;
  }
  .footer-panel {
    grid-template-columns: 1.2fr 1fr;
    gap: 32px 40px;
    border-radius: 28px;
  }
  .footer-brand-column {
    grid-column: 1;
    grid-row: 1;
  }
  .footer-contact-column {
    grid-column: 1;
    grid-row: 2;
  }
  .footer-link-column {
    grid-column: 2;
  }
  .footer-copyright {
    margin-top: 24px;
  }
}
@media (max-width: 600px) {
  .site-footer.footer-reference {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }
  .footer-reference .footer-shell {
    width: calc(100% - 32px);
  }
  .footer-app-promo {
    min-height: 0;
    padding: 32px 8px 0;
  }
  .footer-app-copy {
    max-width: none;
  }
  .footer-app-heading {
    justify-content: center;
    align-items: center;
    gap: 14px;
  }
  .footer-app-heading h2 {
    font-size: clamp(1.35rem, 5.8vw, 1.85rem);
  }
  .footer-app-heading p {
    max-width: 210px;
    font-size: 0.8125rem;
  }
  .footer-download-prompt {
    margin-top: 26px;
    text-align: center;
  }
  .footer-store-buttons {
    justify-content: center;
    gap: 8px;
  }
  .footer-store-button {
    flex: 1;
    min-width: 0;
    max-width: 172px;
    padding-inline: 10px;
    gap: 8px;
  }
  .footer-store-button strong {
    font-size: 0.875rem;
  }
  .footer-store-button svg {
    width: 24px;
    height: 24px;
  }
  /* As on wider screens, the phone's lower half sits behind the footer panel: the promo clips it
     flat at its bottom edge, right where the panel begins. */
  .footer-phone {
    position: relative;
    top: auto;
    right: auto;
    width: min(240px, 72%);
    margin: 32px auto -96px;
  }
  .footer-panel {
    grid-template-columns: 1fr 1fr;
    gap: 28px 18px;
    padding: 30px 24px;
    border-radius: 28px;
  }
  .footer-brand-column {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .footer-reference .footer-panel .brand {
    font-size: 2.25rem;
  }
  .footer-tagline {
    margin-bottom: 18px;
  }
  .footer-copyright {
    margin-top: 22px;
  }
  .footer-link-column {
    grid-column: auto;
  }
  .footer-contact-column {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 24px;
    border-top: 1px solid #ffffff20;
  }
  .footer-panel h2 {
    font-size: 0.875rem;
    margin-bottom: 10px;
  }
  .footer-link-column a {
    font-size: 0.75rem;
  }
  .footer-contact-column p {
    font-size: 0.8125rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer-store-button {
    transition: none;
  }
}

/* The reference-style floating mock QR card; no other section is affected. */
.footer-qr-float {
  position: fixed;
  z-index: 24;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(40px, env(safe-area-inset-bottom));
  width: 251px;
  max-width: calc(100vw - 24px);
  border-radius: 10px;
  background: linear-gradient(100deg, #e3efde99 0%, #fcf7eeed 82%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #1d211e;
  box-shadow: 0 8px 34px #17352f0c;
}
.footer-qr-float[hidden] {
  display: none;
}
.footer-qr-float-action {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: 100%;
  padding: 8px;
  border-radius: inherit;
  text-align: left;
}
.footer-qr-float-action img {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border: 1px solid #d7ded6;
  border-radius: 5px;
  background: white;
}
.footer-qr-float-action span {
  padding-bottom: 3px;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: -0.035em;
}
.footer-qr-float-close {
  position: absolute;
  top: 11px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  background: #fff;
  color: #1d211e;
}
.footer-qr-float-close svg {
  width: 20px;
  height: 20px;
}
.footer-qr-float-close:hover {
  background: #eef5e9;
}
.footer-qr-float button:focus-visible {
  outline: 2px solid #00685f;
  outline-offset: 3px;
}
body.dialog-open .footer-qr-float {
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 767px) {
  .footer-qr-float {
    display: none;
  }
}
