/* App home — full-bleed hero + lakes (demo welcome) */
.app-home {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: calc(var(--app-tab-h, 64px) + env(safe-area-inset-bottom, 0px) + 16px);
}

.app-home .hero {
  position: relative;
  min-height: 70vh;
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 22px 28px;
  color: var(--ink-on-photo, #fffaf4);
  isolation: isolate;
  overflow: hidden;
}

.app-home .hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(28, 42, 40, 0.12), rgba(16, 24, 22, 0.88)),
    url("https://images.unsplash.com/photo-1439066615861-d1af74d74000?auto=format&fit=crop&w=1200&q=80")
      center / cover no-repeat;
  transform: scale(1.04);
  animation: appHomeHeroIn 1.1s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.app-home .brand {
  margin: 0 0 10px;
  max-width: 11ch;
  font-family: var(--display, var(--serif));
  font-size: clamp(2.1rem, 9vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  animation: appHomeRise 0.85s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) 0.08s both;
}

.app-home .lead {
  margin: 0 0 20px;
  max-width: 28ch;
  line-height: 1.45;
  color: rgba(255, 250, 244, 0.86);
  animation: appHomeRise 0.85s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) 0.18s both;
}

.app-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: appHomeRise 0.85s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) 0.28s both;
}

.app-home .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.app-home .cta:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

.app-home .cta:active {
  transform: scale(0.98);
}

.app-home .cta--ghost {
  background: transparent;
  color: var(--ink-on-photo, #fffaf4);
  box-shadow: inset 0 0 0 1.5px rgba(255, 250, 244, 0.45);
}

.app-home .cta--ghost:hover {
  background: rgba(255, 250, 244, 0.1);
  color: var(--ink-on-photo, #fffaf4);
}

.app-home .cta--soft {
  background: var(--accent-soft);
  color: var(--accent-hover);
  width: 100%;
  margin-top: 16px;
}

.app-home .cta--soft:hover {
  background: rgba(52, 143, 133, 0.18);
  color: var(--accent-hover);
}

.app-home .section {
  padding: 24px 22px 8px;
  animation: appHomeRise 0.55s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) both;
}

.app-home .section__label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.app-home .section__title {
  margin: 0 0 14px;
  font-family: var(--display, var(--serif));
  font-size: 1.5rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  line-height: 1.15;
}

.app-home .lakes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-home .lake {
  position: relative;
  display: block;
  min-height: 132px;
  margin: 0 -22px;
  overflow: hidden;
  color: var(--ink-on-photo, #fffaf4);
  isolation: isolate;
  text-decoration: none;
}

.app-home .lake__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.app-home .lake:hover .lake__img {
  transform: scale(1.04);
}

.app-home .lake__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(22, 30, 28, 0.72), rgba(22, 30, 28, 0.18));
}

.app-home .lake__body {
  position: relative;
  padding: 20px 22px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.app-home .lake__name {
  margin: 0;
  font-family: var(--display, var(--serif));
  font-size: 1.3rem;
  font-weight: 550;
}

.app-home .lake__meta {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: rgba(255, 250, 244, 0.82);
}

.app-home .line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-heading);
  font-weight: 500;
}

.app-home .line span:last-child {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.92rem;
  text-align: right;
}

.app-home .line a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.app-home .note {
  margin: 16px 22px 8px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #aaa39a;
}

@keyframes appHomeHeroIn {
  from { opacity: 0.85; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.04); }
}

@keyframes appHomeRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .app-home .hero__media,
  .app-home .brand,
  .app-home .lead,
  .app-home .hero__actions,
  .app-home .section {
    animation: none;
  }
}

/* App chrome: hide classic site header/footer */
body:has(.app-home) .site-header,
body:has(.app-home) .site-footer {
  display: none !important;
}

body:has(.app-home) {
  padding-bottom: 0;
}

@media (min-width: 861px) {
  .app-home {
    margin-top: 24px;
    margin-bottom: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card, 0 10px 28px rgba(63, 58, 51, 0.07));
  }

  body:has(.app-home) .site-header,
  body:has(.app-home) .site-footer {
    display: block !important;
  }
}
