/* nightsense.app home (2026-10-28): one screen, the night sky above the
   clouds with Luna asleep on hers. base.css has the fonts, sky, header and
   footer; this is the hero, sized so it always fits one screen: the words
   keep their size and Luna takes the height that's left (very short windows
   scroll instead of squashing her). */

body.landing {
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.landing main {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(10px, 3.6vh, 60px) 16px 0;
}

/* A small glass label above the headline. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 clamp(12px, 2.4vh, 24px);
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffe1a8;
  box-shadow: 0 0 10px 2px rgba(255, 210, 140, 0.7);
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: 0.45; transform: scale(0.8); } }

/* The headline in the wordmark's soft serif; one word in its italic. */
.landing h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(40px, min(8.2vw, 11.6vh), 108px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--cream);
  text-wrap: balance;
}
.landing h1 .plain {
  background: linear-gradient(180deg, #fffaf2 0%, var(--cream) 55%, #e9dcc8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.landing h1 .soft {
  font-style: italic;
  font-weight: 400;
  padding: 0 0.04em;
  background: linear-gradient(100deg, #c4b6ff 0%, var(--lavender-soft) 50%, #f3e6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(183, 168, 246, 0.5));
}

.landing .sub {
  margin: clamp(10px, 2vh, 18px) auto 0;
  max-width: 44ch;
  font-size: clamp(16px, 1.55vw, 19px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: balance;
}

/* Store buttons, with the store's mark: "coming soon" until the app is
   listed (app.js NS.live). */
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 460px;
  margin-top: clamp(16px, 3.4vh, 30px);
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
  min-height: 54px;
  padding: 8px 18px 8px 16px;
  border-radius: 14px;
  text-decoration: none;
  line-height: 1.15;
  text-align: left;
  color: #120f1f;
  background: var(--cream);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.store svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.store .t { display: flex; flex-direction: column; }
.store small { font-size: 11px; font-weight: 600; opacity: 0.7; }
.store b { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
a.store:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45); }
.store.soon {
  color: var(--cream);
  background: rgba(10, 12, 34, 0.42);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Luna, asleep on her cloud, breathing slowly: as big as the space left. */
.luna {
  position: relative;
  flex: 1 1 0;
  min-height: 150px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: clamp(10px, 2.6vh, 40px);
}
.luna::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  height: 62%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 233, 190, 0.38), rgba(255, 233, 190, 0) 65%);
  animation: glow 7s ease-in-out infinite;
}
.luna img {
  position: relative;
  display: block;
  height: 100%;
  max-height: 470px;
  width: auto;
  max-width: min(92vw, 560px);
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(2, 4, 20, 0.55));
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes glow {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.96); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

/* What's inside, as glass chips. */
.inside {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: clamp(10px, 2.6vh, 30px) 0 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}
.inside li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.inside svg { width: 17px; height: 17px; flex: none; color: var(--lavender-soft); }

.landing .foot { padding: clamp(10px, 2.4vh, 22px) 16px max(clamp(10px, 2.2vh, 20px), env(safe-area-inset-bottom)); }

/* Phones held upright: a big two-line headline. */
@media (orientation: portrait) and (max-width: 599px) {
  .landing h1 { font-size: clamp(42px, 13.4vw, 66px); }
}
@media (max-width: 560px) {
  .brand img { height: 24px; }
  .social { width: 36px; height: 36px; }
  .social svg { width: 15px; height: 15px; }
  .eyebrow { font-size: 12px; padding: 6px 13px 6px 11px; }
  .store { min-width: 0; flex: 1 1 140px; max-width: 210px; padding: 8px 12px; gap: 10px; }
  .store svg { width: 21px; height: 21px; }
  .store b { font-size: 15.5px; }
  .inside { gap: 8px; font-size: 13px; }
  .inside li { padding: 7px 12px 7px 10px; }
  .inside svg { width: 15px; height: 15px; }
}

/* Short phones (iPhone SE, small Android): the label gives Luna its room. */
@media (orientation: portrait) and (max-height: 700px) {
  .eyebrow { display: none; }
}

/* Tablets held upright: everything a size up so it fills the screen. */
@media (orientation: portrait) and (min-width: 600px) and (min-height: 860px) {
  .brand img { height: 32px; }
  .social { width: 44px; height: 44px; }
  .landing main { padding-top: clamp(24px, 4.4vh, 80px); }
  .eyebrow { font-size: 15px; padding: 8px 18px 8px 14px; }
  .landing h1 { font-size: clamp(64px, 11.6vw, 138px); line-height: 1; }
  .landing .sub { font-size: clamp(19px, 2.7vw, 25px); max-width: 30ch; margin-top: clamp(14px, 2.2vh, 26px); }
  .stores { max-width: 560px; gap: 16px; margin-top: clamp(22px, 3.4vh, 40px); }
  .store { min-height: 66px; padding: 10px 24px 10px 20px; border-radius: 16px; }
  .store svg { width: 28px; height: 28px; }
  .store small { font-size: 12.5px; }
  .store b { font-size: 20px; }
  .luna img { max-height: 620px; max-width: min(84vw, 680px); }
  .inside { font-size: clamp(15px, 2vw, 18px); gap: 12px; }
  .inside li { padding: 10px 18px 10px 15px; }
  .landing .foot { font-size: 14.5px; }
}

/* Phones on their side (and other short, wide windows): words on the left,
   Luna on the right, so nothing falls below the screen. */
@media (orientation: landscape) and (max-height: 540px) {
  body.landing { min-height: 0; }
  .top { padding-top: max(10px, env(safe-area-inset-top)); }
  .brand img { height: 20px; }
  .social { width: 32px; height: 32px; }
  .social svg { width: 14px; height: 14px; }
  .landing main {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    grid-template-areas: "eyebrow luna" "title luna" "sub luna" "stores luna" "inside luna";
    align-content: center;
    justify-items: start;
    column-gap: 3vw;
    text-align: left;
    padding: 0 max(28px, env(safe-area-inset-right)) 0 max(28px, env(safe-area-inset-left));
  }
  .eyebrow { grid-area: eyebrow; margin-bottom: clamp(6px, 2vh, 12px); font-size: 11.5px; padding: 5px 12px 5px 10px; }
  .landing h1 { grid-area: title; font-size: clamp(28px, min(5.2vw, 11.5vh), 58px); }
  .landing .sub { grid-area: sub; margin: clamp(6px, 2.2vh, 12px) 0 0; max-width: 40ch; font-size: clamp(13px, 3.5vh, 16px); }
  .stores { grid-area: stores; justify-content: flex-start; max-width: none; gap: 10px; margin-top: clamp(10px, 3.2vh, 18px); }
  .store { flex: 0 1 160px; min-width: 0; min-height: 44px; padding: 6px 14px 6px 12px; gap: 9px; }
  .store svg { width: 19px; height: 19px; }
  .store b { font-size: 14.5px; }
  .store small { font-size: 10px; }
  .inside { grid-area: inside; justify-content: flex-start; margin-top: clamp(8px, 2.8vh, 16px); gap: 6px; font-size: 12px; }
  .inside li { padding: 5px 10px 5px 9px; }
  .inside svg { width: 13px; height: 13px; }
  .luna { grid-area: luna; flex: none; min-height: 0; margin: 0; align-self: center; }
  .luna img { width: 100%; max-width: 420px; height: auto; max-height: 72vh; }
  .landing .foot { padding: 4px 16px max(8px, env(safe-area-inset-bottom)); font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .luna img, .luna::before, .eyebrow .dot { animation: none; }
}
