/* Lost Lantern Digital website: page basics. Most styling is written on each element. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #151412; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: #F1C46A; }
a:hover { color: #D89A3D; }
a:focus-visible, button:focus-visible { outline: 2px solid #F1C46A; outline-offset: 3px; }
section[id] { scroll-margin-top: 16px; }

/* "See it in action" buttons on the Morrow page */
.demo-tab {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: 100%; min-height: 44px; padding: 18px 22px; border-radius: 16px;
  cursor: pointer; font-family: inherit; color: inherit;
  background: #1C1A17; border: 1px solid #3A3630;
}
.demo-tab[aria-pressed="true"] {
  background: #2A2318; border-color: #D89A3D; box-shadow: 0 0 24px rgba(216,154,61,0.18);
}

@media (max-width: 600px) {
  header nav { gap: 16px !important; }
  /* On phones the header keeps only its buttons; the page sections are a scroll away */
  header nav a[href^="#"]:not(:last-child) { display: none; }
  section { padding-left: 20px !important; padding-right: 20px !important; }
}

/* Header logo: a little smaller on phones so the menu button still fits */
@media (max-width: 600px) {
  .site-logo { height: 54px !important; }
}

/* Morrow page pictures */
img[hidden] { display: none !important; }

/* "Back to Lost Lantern Digital" bar at the top of app pages */
.home-link {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; font-size: 14px; color: #D8D2C8; text-decoration: none;
}
.home-link:hover { color: #F1C46A; }
.home-arrow { color: #D89A3D; font-size: 16px; transition: transform 0.15s ease; }
.home-link:hover .home-arrow { transform: translateX(-3px); }

/* WhatsApp button that stays in the bottom corner */
.wa-float {
  position: fixed; right: 20px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 50;
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 48px; padding: 0 20px 0 16px; border-radius: 999px;
  background: #25D366; color: #0B2E17; text-decoration: none;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-float:hover { color: #0B2E17; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,0.5); }
.wa-float:focus-visible { outline: 2px solid #F1C46A; outline-offset: 3px; }

/* Picture viewer on the Morrow page: tap anywhere to close */
.viewer {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 16px 24px; background: rgba(10, 9, 8, 0.96);
  cursor: zoom-out; animation: viewer-in 0.18s ease;
}
.viewer img {
  max-width: min(1400px, 100%); max-height: 100%; width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.viewer-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  border-radius: 22px; border: 1px solid #5A4826; background: #1C1A17;
  color: #F4F0E8; font-size: 26px; line-height: 1; cursor: pointer;
}
.viewer-hint { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 13px; color: #AAA39A; font-family: 'Archivo', sans-serif; }
@keyframes viewer-in { from { opacity: 0; } to { opacity: 1; } }
body.viewer-open { overflow: hidden; }
#closer-look a img { cursor: zoom-in; }

@media (max-width: 600px) {
  /* Less empty space between sections on phones */
  section { padding-top: 44px !important; padding-bottom: 44px !important; }
  #in-action { padding-bottom: 16px !important; }
  #on-your-phone { padding-top: 24px !important; }
  /* A round WhatsApp button on phones, so it doesn't cover the page */
  .wa-float { padding: 0; width: 52px; height: 52px; justify-content: center; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .wa-float span { display: none; }
  .wa-float svg { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .viewer { animation: none; }
}
