/* NexaMotion landing page (Roam). Source of truth: the approved design, CES Website Design/index.html. */

/* ---------- Hero ---------- */

.nm-hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--nm-hero-ground);
}
.nm-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bright fairway: keep the tree line and Roam in a wide frame. */
  object-position: 54% 42%;
}
@media (max-width: 860px) {
  .nm-hero__img { object-position: 72% 42%; }
}
.nm-hero__content {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 160px var(--nm-gutter) clamp(56px, 8vw, 96px);
}
.nm-hero__inner { display: flex; flex-direction: column; gap: 20px; }
.nm-hero .nm-eyebrow { color: var(--nm-on-photo-label); }
.nm-hero__title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--nm-linen);
}
.nm-hero__lede { margin: 0; max-width: 560px; font-size: 18px; line-height: 28px; color: var(--nm-on-photo-text); }
.nm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 8px;
}
.nm-hero__more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 500;
  color: var(--nm-linen);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Roam ---------- */

.nm-roam__stack { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 72px); }
.nm-roam__intro .nm-intro { max-width: none; }

.nm-roam__features {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
[data-roam="c"] .nm-roam__features {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}
@media (max-width: 860px) {
  .nm-roam__features { grid-template-columns: minmax(0, 1fr); }
}

/* Photo reel. Ken Burns sits on an inner frame so object-fit crops stay put. */
.nm-reel { position: relative; background: var(--nm-sand); }
.nm-reel__viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--nm-radius);
  background: var(--nm-sand);
}
.nm-reel--wide .nm-reel__viewport { aspect-ratio: 3 / 2; }
.nm-reel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translate3d(6%, 0, 0);
  z-index: 0;
  transition: none;
}
.nm-reel--fade .nm-reel__slide { transform: none; }
.nm-reel__slide.is-active,
.nm-reel__slide.is-leaving {
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.nm-reel__slide.is-active {
  opacity: 1;
  transform: none;
  z-index: 1;
}
.nm-reel__slide.is-leaving {
  opacity: 0;
  transform: translate3d(-6%, 0, 0);
}
.nm-reel--fade .nm-reel__slide.is-leaving { transform: none; }
.nm-reel__zoom { position: absolute; inset: 0; }
.nm-reel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--nm-pos, 50% 50%);
}
.nm-reel__slide.is-active .nm-reel__zoom--a,
.nm-reel__slide.is-leaving .nm-reel__zoom--a { animation: nm-kb-a 8.5s linear both; }
.nm-reel__slide.is-active .nm-reel__zoom--b,
.nm-reel__slide.is-leaving .nm-reel__zoom--b { animation: nm-kb-b 8.5s linear both; }
.nm-reel__slide.is-active .nm-reel__zoom--c,
.nm-reel__slide.is-leaving .nm-reel__zoom--c { animation: nm-kb-c 8.5s linear both; }
.nm-reel__slide.is-active .nm-reel__zoom--d,
.nm-reel__slide.is-leaving .nm-reel__zoom--d { animation: nm-kb-d 8.5s linear both; }
@keyframes nm-kb-a {
  from { transform: scale(1.06) translate3d(1.5%, 0.6%, 0); }
  to { transform: scale(1.14) translate3d(-1.6%, -1.1%, 0); }
}
@keyframes nm-kb-b {
  from { transform: scale(1.12) translate3d(-1.6%, 0.4%, 0); }
  to { transform: scale(1.05) translate3d(1.5%, -0.8%, 0); }
}
@keyframes nm-kb-c {
  from { transform: scale(1.05) translate3d(0.3%, 1.3%, 0); }
  to { transform: scale(1.13) translate3d(-0.5%, -1.4%, 0); }
}
@keyframes nm-kb-d {
  from { transform: scale(1.11) translate3d(1.2%, -0.9%, 0); }
  to { transform: scale(1.05) translate3d(-1.4%, 1%, 0); }
}

.nm-reel__bar {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 36px 10px 6px;
  background: linear-gradient(180deg, rgba(19, 32, 26, 0) 0%, rgba(19, 32, 26, 0.42) 70%);
}
.nm-reel__dots { display: flex; align-items: center; }
.nm-reel__dot {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nm-reel__dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  border-radius: var(--nm-radius-pill);
  background: rgba(243, 239, 230, 0.72);
}
.nm-reel__dot[aria-current="true"]::after {
  width: 20px;
  background: var(--nm-linen);
}
.nm-reel__pause {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--nm-linen);
  font-family: var(--nm-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 16px;
  min-height: 44px;
  padding: 0 10px;
  cursor: pointer;
}
.nm-reel__pause:hover { color: #fff; }
.nm-reel :focus-visible { outline-color: var(--nm-linen); outline-offset: -3px; }

.nm-benefits { display: flex; flex-direction: column; }
.nm-benefit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--nm-line);
}
.nm-benefit:first-child { border-top: 1px solid var(--nm-line); }

.nm-benefits--sync .nm-benefit {
  position: relative;
  border-left: 2px solid transparent;
  padding: 18px 16px 18px 18px;
  transition: background-color 0.45s ease, border-color 0.45s ease;
}
.nm-benefit__pick {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nm-benefit__pick:focus-visible { outline-offset: -3px; }
.nm-benefits--sync .nm-benefit.is-active {
  border-left-color: var(--nm-forest);
  background: rgba(232, 226, 212, 0.72);
}

.nm-benefits--grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
  border-top: 1px solid var(--nm-line);
  padding-top: 28px;
}
.nm-benefits--grid .nm-benefit {
  border: 0;
  padding: 0;
}
@media (max-width: 900px) {
  .nm-benefits--grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nm-benefits--grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 0;
    border-top: 0;
  }
  .nm-benefits--grid .nm-benefit {
    padding: 20px 0;
    border-bottom: 1px solid var(--nm-line);
  }
  .nm-benefits--grid .nm-benefit:first-child { border-top: 1px solid var(--nm-line); }
}

@media (prefers-reduced-motion: reduce) {
  .nm-reel__slide,
  .nm-reel__slide.is-active,
  .nm-reel__slide.is-leaving { transition: none; }
  .nm-reel__zoom { animation: none !important; transform: none; }
  .nm-benefits--sync .nm-benefit { transition: none; }
  .nm-reel__pause { display: none; }
}

/* ---------- Enhance ---------- */

.nm-enhance__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
}
.nm-enhance__device {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.nm-enhance__copy {
  flex: 999 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.nm-enhance__copy .nm-intro { max-width: 620px; }

/* Concept phone screen: markup, not a photo. */
.nm-phone {
  width: 300px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 46px;
  background: var(--nm-phone-body);
  border: 1px solid var(--nm-phone-edge);
}
.nm-phone__screen {
  height: 600px;
  border-radius: 36px;
  overflow: hidden;
  background: var(--nm-linen);
  color: var(--nm-forest-900);
  display: flex;
  flex-direction: column;
}
.nm-phone .nm-label { color: var(--nm-sage-700); }
.nm-phone__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 28px 20px 12px;
}
.nm-phone__hole { display: flex; flex-direction: column; gap: 2px; }
.nm-phone__course { font-size: 20px; line-height: 26px; font-weight: 600; color: var(--nm-forest); }
.nm-phone__map { display: block; width: 100%; height: auto; }
.nm-phone__yards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px 20px;
  border-bottom: 1px solid var(--nm-line);
}
.nm-phone__yard { display: flex; flex-direction: column; gap: 2px; }
.nm-phone__yard-value { font-size: 22px; line-height: 28px; font-weight: 600; color: var(--nm-forest); }
.nm-phone__tip {
  margin: 14px 16px 0;
  padding: 12px 14px;
  border-radius: var(--nm-radius);
  background: var(--nm-card);
  border: 1px solid var(--nm-line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nm-phone__tip-text { font-size: 15px; line-height: 22px; font-weight: 500; color: var(--nm-forest-900); }
.nm-phone__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 22px;
}
.nm-phone .nm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--nm-radius-pill);
  background: var(--nm-forest);
  color: var(--nm-linen);
}
.nm-chip__dot { width: 6px; height: 6px; border-radius: var(--nm-radius-pill); background: var(--nm-sage-300); }

.nm-rows { display: flex; flex-direction: column; border-top: 1px solid var(--nm-hairline-dark); }
.nm-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 8px 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--nm-hairline-dark);
}
.nm-row .nm-eyebrow { line-height: 30px; }
.nm-row__body { display: flex; flex-direction: column; gap: 8px; grid-column: span 2; }

/* ---------- About ---------- */

.nm-about__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.nm-about__photo {
  position: relative;
  height: clamp(320px, 42vw, 580px);
  border-radius: var(--nm-radius);
  overflow: hidden;
  background: var(--nm-sand);
}
.nm-about__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.nm-about__copy { display: flex; flex-direction: column; gap: 36px; }
.nm-about__copy .nm-intro { max-width: none; }
.nm-points { display: flex; flex-direction: column; border-top: 1px solid var(--nm-line); }
.nm-point {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--nm-line);
}

/* ---------- Waitlist ---------- */

.nm-waitlist {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 12vw, 160px) var(--nm-gutter);
}
.nm-waitlist__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.nm-waitlist__shade { position: absolute; inset: 0; background: rgba(19, 32, 26, 0.7); }
.nm-waitlist__inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.nm-waitlist .nm-eyebrow { color: var(--nm-mist); }
.nm-waitlist__title {
  margin: 0;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--nm-linen);
}
.nm-waitlist .nm-lede { color: var(--nm-on-dark-text); }

.nm-form { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.nm-form__fields { display: flex; flex-wrap: wrap; gap: 16px; }
.nm-field { display: flex; flex-direction: column; gap: 6px; }
.nm-field--name { flex: 1 1 220px; }
.nm-field--email { flex: 2 1 260px; }
.nm-field--company { flex: 2 1 260px; }
.nm-field--country { flex: 1 1 180px; }
.nm-field--interest { flex: 1 1 100%; }
.nm-field__label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--nm-linen); }
.nm-field__optional { font-weight: 400; color: var(--nm-mist); }
.nm-input {
  height: 48px;
  box-sizing: border-box;
  padding: 0 14px;
  border-radius: var(--nm-radius-input);
  border: 1px solid rgba(243, 239, 230, 0.45);
  background: rgba(243, 239, 230, 0.08);
  color: var(--nm-linen);
  font-family: inherit;
  font-size: 16px;
}
.nm-input--select { padding: 0 12px; }
.nm-input[aria-invalid="true"] { border-color: var(--nm-error-on-dark); }
.nm-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--nm-on-dark-text);
  cursor: pointer;
}
.nm-consent input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
  accent-color: var(--nm-sage-300);
}
.nm-error { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--nm-error-on-dark); }
.nm-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.nm-form__submit { padding: 0 32px; }
.nm-form__note { margin: 0; font-size: 14px; line-height: 20px; color: var(--nm-mist); }
.nm-form__note a { color: var(--nm-linen); text-decoration: underline; text-underline-offset: 3px; }
/* Honeypot: invisible to people, tempting to bots. */
.nm-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.nm-success {
  margin-top: 12px;
  padding: 20px 24px;
  border-radius: var(--nm-radius);
  background: rgba(243, 239, 230, 0.1);
  border: 1px solid rgba(243, 239, 230, 0.3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nm-success__title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--nm-linen); }
.nm-success__text { margin: 0; font-size: 16px; line-height: 24px; color: var(--nm-on-dark-text); }
