/* Public landing page. Canvas scenes share art with the office. */
.landing {
  --nearlo-paper: #fafafa;
  --nearlo-night: #171717;
  --nearlo-ink: #181818;
  --nearlo-muted: #565656;
  --nearlo-line: #dcdcdc;
  --nearlo-light: #fff;
  --nearlo-primary: #202020;
  --nearlo-primary-hover: #414141;
  position: fixed;
  inset: 0;
  overflow-y: auto;
  background: var(--nearlo-paper);
  color: var(--nearlo-ink);
}
.nearlo-wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.nearlo-nav {
  background: var(--nearlo-light);
  border-bottom: 1px solid var(--nearlo-line);
}
.nearlo-nav-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}
.nearlo-brand { width: fit-content; }
.nearlo-brand .brand-name { font-size: 1.375rem; font-weight: 800; letter-spacing: -.04em; }
.nearlo-nav-links, .nearlo-nav-actions { display: flex; align-items: center; gap: 24px; }
.nearlo-nav-links a, .nearlo-footer a { font-size: .875rem; font-weight: 600; }
.nearlo-nav-links a:hover, .nearlo-footer nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nearlo-nav-actions { justify-self: end; gap: 4px; }
.landing .btn { border-radius: 8px; padding-inline: 14px; font-size: .875rem; }
.landing .btn-lg { min-height: 48px; padding-inline: 20px; font-size: .9375rem; }
.landing .nearlo-primary { background: var(--nearlo-primary); color: #fff; }
.landing .nearlo-primary:hover { background: var(--nearlo-primary-hover); }
.landing .nearlo-secondary {
  border: 1px solid var(--nearlo-line);
  background: var(--nearlo-light);
  color: var(--nearlo-ink);
}
.landing .nearlo-secondary:hover { background: var(--nearlo-paper); border-color: var(--nearlo-muted); }

.nearlo-hero {
  padding-block: clamp(36px, 6vw, 72px) clamp(16px, 3vw, 32px);
  background: var(--nearlo-light);
  border-bottom: 1px solid var(--nearlo-line);
}
.nearlo-hero-scene {
  position: relative;
  height: clamp(230px, 43vw, 505px);
  margin-block: 0;
  overflow: hidden;
  border-radius: 12px;
}
#heroMap {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: pixelated;
}
/* Magic UI Dot Pattern and Shimmer Button adapted to Nearlo's landing page. */
.nearlo-hero { position: relative; isolation: isolate; }
.nearlo-hero-dots {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: min(560px, 100%);
  pointer-events: none;
  background: radial-gradient(circle, #202020 1px, transparent 1.5px) 0 0 / 20px 20px;
  opacity: .16;
  mask-image: radial-gradient(ellipse at 50% 0%, transparent 21%, #000 48%, transparent 79%);
}
.nearlo-shimmer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.nearlo-shimmer::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, #fff3 50%, transparent 70%);
  transform: translateX(-110%);
  animation: nearlo-shimmer-sweep 5s ease-in-out infinite;
}
.nearlo-frame-glint {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(110deg, #1818185e 30%, #fff 50%, #1818185e 70%) 100% 0 / 250% 100%;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: nearlo-frame-sweep 8s linear infinite;
}
@keyframes nearlo-shimmer-sweep {
  0%, 52% { transform: translateX(-110%); }
  75%, 100% { transform: translateX(110%); }
}
@keyframes nearlo-frame-sweep {
  0%, 25% { background-position: 100% 0; }
  65%, 100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nearlo-shimmer::before, .nearlo-frame-glint { animation: none; }
}

.nearlo-hero-scene figcaption {
  position: absolute;
  z-index: 1;
  right: clamp(16px, 4vw, 48px);
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid #fff6;
  border-radius: 8px;
  background: #171717ed;
  color: var(--nearlo-light);
  font-size: .875rem;
  font-weight: 700;
}
.nearlo-hero-scene .icon { width: 16px; height: 16px; }
.nearlo-hero-motion:not([hidden]) {
  position: absolute;
  bottom: 24px;
  left: clamp(16px, 4vw, 48px);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #fff6;
  border-radius: 8px;
  background: #171717ed;
  color: #fff;
}
.nearlo-hero-motion:not([hidden]):hover { background: #383838; }
.nearlo-hero-motion:focus-visible { outline-color: var(--nearlo-light); }
.nearlo-hero-motion .icon { width: 17px; height: 17px; }
.nearlo-hero-copy { max-width: 780px; margin-inline: auto; text-align: center; }
.nearlo-hero h1 {
  margin: 0;
  font-size: clamp(31px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.36;
  text-wrap: balance;
}
.nearlo-hero h1 span {
  display: block;
  margin-block-start: clamp(12px, 1.6vw, 22px);
}
.nearlo-lead {
  max-width: 56ch;
  margin: clamp(20px, 3svh, 28px) auto 0;
  color: var(--nearlo-muted);
  font-size: clamp(.9375rem, 1.35vw, 1.0625rem);
  line-height: 1.9;
  text-wrap: balance;
}
.nearlo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(20px, 3svh, 28px);
}
.nearlo-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(24px, 6vw, 88px);
  padding: 0;
  margin: clamp(24px, 4vw, 36px) 24px;
  list-style: none;
}
.nearlo-hero-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--nearlo-muted);
}
.nearlo-laurel { width: clamp(10px, 3vw, 25px); height: 39px; }
.nearlo-laurel-right { transform: scaleX(-1); }
.nearlo-badge-label {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: var(--nearlo-ink);
  font-size: clamp(.68rem, 1.85vw, .875rem);
  font-weight: 650;
  text-align: center;
  text-wrap: balance;
}
.nearlo-badge-stars { width: 53px; height: 11px; }

.nearlo-section-head h2, .nearlo-start h2 {
  margin: 0;
  font-size: clamp(2rem, 3.9vw, 3.625rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.22;
  text-wrap: balance;
}
.nearlo-section-head p, .nearlo-start p {
  max-width: 46ch;
  margin: 11px 0 0;
  color: var(--nearlo-muted);
  line-height: 1.7;
}
.nearlo-demo-section { padding-block: clamp(52px, 8vw, 110px); }
.nearlo-demo-head { margin-bottom: 24px; }
.nearlo-demo {
  display: grid;
  grid-template-columns: minmax(205px, .53fr) minmax(0, 1.47fr);
  align-items: start;
  gap: clamp(20px, 4vw, 56px);
}
.nearlo-demo-actions { display: grid; align-self: center; }
.nearlo-demo-actions button {
  display: flex;
  align-items: center;
  min-height: 56px;
  gap: 12px;
  text-align: left;
  padding: 13px 2px;
  border-bottom: 1px solid var(--nearlo-line);
  color: var(--nearlo-muted);
}
.nearlo-demo-actions button:hover { color: var(--nearlo-ink); }
.nearlo-demo-actions button[aria-pressed="true"] { color: var(--nearlo-primary-hover); border-color: currentColor; }
.nearlo-demo-actions button b { display: block; }
.nearlo-demo-actions button small {
  display: block;
  margin-top: 3px;
  color: var(--nearlo-muted);
  font-size: .875rem;
  line-height: 1.4;
}
.nearlo-demo-actions .icon { width: 20px; height: 20px; flex: none; }
.nearlo-demo-window { min-width: 0; margin: 0; }
.nearlo-demo-scene { position: relative; }
#landingMap, #layoutMap, #faqMap, #startMap { display: block; width: 100%; height: auto; }
#landingMap, #layoutMap, #faqMap, #startMap { border-radius: 6px; }
.nearlo-demo-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 54px;
  padding-block: 8px;
}
.nearlo-demo-status { display: inline-flex; gap: 7px; align-items: center; font-size: .875rem; font-weight: 700; color: var(--nearlo-primary-hover); }
.nearlo-demo-status .icon { width: 17px; height: 17px; }
.nearlo-demo-status.outside { color: var(--nearlo-muted); }
.nearlo-demo-controls { display: flex; gap: 10px; }
.nearlo-demo-controls button {
  min-height: 34px;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  color: var(--nearlo-muted);
  font-size: .875rem;
  font-weight: 600;
}
.nearlo-demo-controls button:hover { color: var(--nearlo-ink); }
.nearlo-demo-controls button[aria-pressed="true"] { color: var(--nearlo-primary-hover); border-color: currentColor; }
.nearlo-demo [hidden] { display: none; }
.nearlo-demo-share {
  position: absolute;
  top: 8%; right: 5%;
  width: min(54%, 200px);
  padding: 8px;
  border: 1px solid #6e6e6e;
  border-radius: 8px;
  background: var(--nearlo-night);
  color: var(--nearlo-light);
  box-shadow: 0 8px 24px #1717178a;
  font-size: .8125rem;
}
.nearlo-demo-share > div:first-child { display: flex; align-items: center; gap: 4px; padding: 2px 0 7px; }
.nearlo-demo-share .icon { width: 14px; height: 14px; flex: none; }
.nearlo-share-sheet { display: grid; gap: 7px; padding: 10px; color: #212121; background: #f1f1f1; border-radius: 4px; }
.nearlo-share-sheet i { display: block; height: 4px; background: #c6c6c6; border-radius: 2px; }
.nearlo-share-sheet i:nth-child(3) { width: 70%; background: #a7a7a7; }
.nearlo-share-sheet i:last-child { width: 85%; }

.nearlo-layouts {
  background: #efefef;
  padding-block: clamp(42px, 6vw, 84px);
}
.nearlo-layouts .nearlo-wrap { max-width: 940px; }
.nearlo-layout-head { margin-bottom: 17px; }
.nearlo-layout-choices {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 3vw, 28px);
  border-bottom: 1px solid var(--nearlo-line);
  margin-bottom: 16px;
}
.nearlo-layout-choices button {
  margin-bottom: -1px;
  padding: 10px 3px;
  border-bottom: 2px solid transparent;
  color: var(--nearlo-muted);
  font-weight: 600;
}
.nearlo-layout-choices button:hover { color: var(--nearlo-ink); }
.nearlo-layout-choices button[aria-pressed="true"] { color: var(--nearlo-primary-hover); border-color: currentColor; }
.nearlo-layout-main { margin: 0; }
.nearlo-layout-main figcaption { padding-top: 10px; color: var(--nearlo-muted); font-size: .875rem; }

.nearlo-faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 16px clamp(24px, 6vw, 80px);
  padding-block: clamp(48px, 8vw, 106px);
}
.nearlo-faq .nearlo-section-head { grid-column: 1 / -1; }
.nearlo-faq details { border-top: 1px solid var(--nearlo-line); }
.nearlo-faq details:last-child { border-bottom: 1px solid var(--nearlo-line); }
.nearlo-faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 0;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.nearlo-faq summary::-webkit-details-marker { display: none; }
.nearlo-faq summary::after { content: '+'; color: var(--nearlo-primary-hover); font-size: 1.25rem; }
.nearlo-faq details[open] summary::after { content: '−'; }
.nearlo-faq details p { margin: 0 0 14px; color: var(--nearlo-muted); line-height: 1.65; }

.nearlo-start {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(18px, 5vw, 70px);
  border-top: 1px solid var(--nearlo-line);
  padding-top: clamp(34px, 6vw, 76px);
}
.nearlo-start .btn { margin-top: 20px; }
.nearlo-start-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nearlo-start-actions .btn-outline { border-color: var(--nearlo-line); color: var(--nearlo-ink); }
.nearlo-footer {
  --ac: #fff;
  margin-top: clamp(40px, 7vw, 80px);
  background: var(--nearlo-night);
  color: var(--nearlo-light);
}
.nearlo-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 100px;
  padding-block: 18px;
}
.nearlo-footer nav { display: flex; gap: 8px 18px; flex-wrap: wrap; color: #dedede; }
#footerAvatars { width: 136px; height: auto; }

@media (max-width: 940px) {
  .nearlo-wrap { width: calc(100% - 48px); }
  .nearlo-nav-links { gap: 13px; }
  .nearlo-demo { grid-template-columns: 1fr; gap: 10px; }
  .nearlo-demo-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .nearlo-demo-actions button { gap: 7px; padding: 7px; }
  .nearlo-demo-actions button small { display: none; }
}
@media (max-width: 690px) {
  .nearlo-wrap { width: calc(100% - 32px); }
  .nearlo-nav-inner { min-height: 65px; grid-template-columns: 1fr auto; gap: 5px; }
  .nearlo-nav-links { display: none; }
  .nearlo-nav-actions .btn { padding-inline: 9px; }
  .nearlo-hero-copy { max-width: 540px; }
  .nearlo-lead { margin-top: 22px; }
  .nearlo-hero-actions { margin-top: 28px; }
  .nearlo-hero-scene { height: clamp(215px, 68vw, 405px); }
  #heroMap { object-position: center 53%; }
  .nearlo-hero-scene figcaption { right: 16px; bottom: 13px; }
  .nearlo-hero-motion:not([hidden]) { bottom: 13px; }
  .nearlo-hero-badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: min(455px, calc(100% - 24px));
    margin: 28px auto 20px;
  }
  .nearlo-hero-badge { justify-content: center; }
  .nearlo-demo-actions button { flex-direction: column; justify-content: center; min-height: 63px; text-align: center; font-size: .8125rem; }
  .nearlo-demo-actions .icon { width: 17px; height: 17px; }
  .nearlo-faq, .nearlo-start { grid-template-columns: 1fr; }
  .nearlo-footer-inner { display: grid; grid-template-columns: 1fr auto; }
  .nearlo-footer nav { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
  .nearlo-brand { gap: 5px; }
  .nearlo-brand .brand-mark { width: 24px; height: 24px; }
  .nearlo-brand .brand-name { font-size: 1.125rem; }
  .landing .btn-lg { padding-inline: 13px; }
  .nearlo-demo-actions button { padding: 5px 2px; }
}

/* Magic UI treatments for the interactive sections and closing CTA. */
.nearlo-magic-card {
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  border: 1px solid var(--nearlo-line);
  border-radius: 14px;
  padding: clamp(10px, 1.8vw, 18px);
  background-color: var(--nearlo-light);
  box-shadow: 0 8px 24px #17171709;
}

@media (hover: hover) and (pointer: fine) {
  .nearlo-magic-card:hover {
    background-image: radial-gradient(260px circle at var(--spot-x) var(--spot-y), #1717170d, transparent 75%);
  }
}

.nearlo-demo-actions { gap: 6px; }
.nearlo-demo-actions button { border-radius: 8px; }
.nearlo-demo-actions button[aria-pressed="true"] { background-color: #17171708; }

.nearlo-layouts {
  background-image: radial-gradient(#1818181a 1px, transparent 1px);
  background-size: 22px 22px;
}
.nearlo-faq summary:hover { color: var(--nearlo-primary-hover); }
.nearlo-faq details[open] p { animation: nearlo-blur-fade .24s ease-out both; }
.nearlo-start.nearlo-magic-card {
  padding: clamp(20px, 4vw, 48px);
  box-shadow: 0 12px 34px #17171712;
}
.nearlo-footer {
  background-image: radial-gradient(#ffffff24 1px, transparent 1px);
  background-size: 18px 18px;
  box-shadow: inset 0 1px #fff2;
}

@keyframes nearlo-blur-fade {
  from { opacity: .65; filter: blur(3px); transform: translateY(6px); }
  to { opacity: 1; filter: none; transform: none; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .nearlo-demo-head, .nearlo-layout-head, .nearlo-faq .nearlo-section-head, .nearlo-start-copy, .nearlo-footer-inner {
      animation: nearlo-blur-fade linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 95%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .nearlo-faq details[open] p { animation: none; }
}
